问题
What event is triggered when user selects value from drop down ComboBox (Active X). How it can be defined in VBA. I would like to trigger macro when value is selected from drop down.
回答1:
ComboBox_Click() is the event you are looking for.
回答2:
If you're using a ComboBox control in a UserForm, it usually have an AfterUpdate Event.
If you're using an ActiveX Control ComboBox in a Sheet, you can try LostFocus Event.
Private Sub ComboBox1_LostFocus()
End Sub
This way, you can type in values and then run the routine after you select another object.
来源:https://stackoverflow.com/questions/29362456/what-event-is-triggered-when-user-selects-value-from-drop-down-combobox-activex