combobox change event

davers5

Active Member
Joined
Feb 20, 2002
Messages
255
I have a combobox that is filled by adding items from a recordset object. I'd like to have a label associated with this combobox so that whenever I select a value in the combo box the label shows the listindex value of the selected item in the combo box. I have this all set up but for some reason when I select an item in the combobox it doesn't trigger the change event. Is there a reason this is happening? Do I need to set some property? The help says the event is triggered whenever the text property changes but it doesn't seem to be working.

Thanks for the advice!

Dave
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Howdy Dave, this should be accurate. You need your change event to have the same name as the combobox itself, recheck the properties. E.g., combobox1 should look like:

http://216.92.17.166/board/viewtopic.php?topic=24678&forum=2

Also, it needs to be in the the correct worksheet module if you've buried the control in a worksheet. In design mode, right click on the control and select view code to be shot into the appropriate module.
 
Upvote 0

Forum statistics

Threads
1,215,061
Messages
6,122,921
Members
449,094
Latest member
teemeren

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top