What event is triggered when user selects value from drop down ComboBox (ActiveX)?

前端 未结 2 631
情话喂你
情话喂你 2021-01-13 13:57

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 d

2条回答
  •  自闭症患者
    2021-01-13 14:11

    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.

提交回复
热议问题