I have an ActiveX Combobox control on a worksheet and this is the _Change
event code
Private Sub ComboBox1_Change()
Me.ComboBox1.ListFillRange = "ItemSearch"
Me.ComboBox1.DropDown
End Sub
When I use keyboard up/down key to move through the list it automatically quits Excel.
Does anyone know the solution to this problem? I basically want a dynamic ComboBox.
You are forcing Combobox's possible values to update when you change the selected option,
that is why it's crashing.
You can try to keep Me.ComboBox1.DropDown
in that event.
But the .ListFillRange
should be in another event :
If you're attempting to have a kind of AutoComplete behavior, you can use a built-in property :
MatchEntry
property0 - fmMatchEntryFirstLetter
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With