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

前端 未结 2 611
情话喂你
情话喂你 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.

    0 讨论(0)
  • 2021-01-13 14:18

    ComboBox_Click() is the event you are looking for.

    0 讨论(0)
提交回复
热议问题