Link to home
Start Free TrialLog in
Avatar of Brent
BrentFlag for United States of America

asked on

Cell Value Equal Combo Box in Excel

Hi,

I have goolged this and seen there are several ways to accomplish this, but I can 't seem to make it work. Not sure if I use VBA or just have the cell value equal the combo box contents.

In my Print Report! worksheet I am using a bunch of vlookups from my DataEntry! worksheet. All of these lookups are currently based off the cell in PrintReport! E3 and they work just fine. But, I would like to use the combo box properties of autocomplete (there will be about 600 entries by the end of the year) to make it easier picking the name. I created a combo box (activeX) and set the properties. I am using quite a bit of Index, Match and vlookups throughout the entire workbook. I have done this all on my own, so I am certain there are better ways, but this is what I know how to do.

Question: How to I set the value in E3 (PrintReport!) to the contents of my combo box?  The combo box will be moved over E3, so the user will only see the combo box.

My workflow will be entering the data into DataEntry! worksheet, then choose from the combo box which will populate the results. Then they will click on EMAIL REPORT which will save as a PDF and email the report (Ok, still working on that part :)  )

Thanks for any help!
EE-Question.xlsx
ASKER CERTIFIED SOLUTION
Avatar of telyni19
telyni19
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Brent

ASKER

Yes, that did the trick! Thanks for the help
thanks
Avatar of Brent

ASKER

Thank you. Brente
(Answering the question about defining the tempcombo variable:) Nope. tempcombo appears to be the name of your combo box already. If you're within the tempcombo_Change event, the context of the code ensures that the reference to tempcombo will be understood. You can even use Me.Value instead, as the keyword Me will refer to whatever object owns the current event. But I tested what I gave you in the file you attached, so if you paste in exactly what I gave you, you should get the desired results.
Avatar of Brent

ASKER

I must have done something wrong the first time, then I posted the reply. Once I tested again, it worked just fine. I wasn't exactly sure where the tempcombo_Change event was located, but after a quick read, I can see that the drop down arrow in the upper right corner was set to change.

Great information about me.value. I will keep that in mind.

Thanks! Brent