-
Does anyone know how to use a combo list box so that when one of the items in the list is clicked on, a procedure or function is executed? Is there any syntax like:
Combo1.getString
and this would give the string that is displayed in the list box so that the Combo_OnChange() function would then be able to determine the string value and depending on the value received from this you could then execute certain procedures or functions.
Any help would be appreciated.
[email protected]
-
Put the same thing in Combo1_Click and Combo1_Change. And to determine what item it is:
Or if a certain item is clicked:
Code:
If Combo1.ListIndex = 1 Then Msgbox Combo1.text & " was clicked."
'or
If Combo1.Text = "Item 1" Then Msgbox Combo1.text & " was clicked."