Change Event

         Example         Applies To

Occurs when the end user changes the selection in a command bar combo box.

Syntax

Private Sub CommandBarComboBox_Change

    (ByVal Ctrl As CommandBarComboBox)

Remarks

The Change event is recognized by the CommandBarComboBox object. To return the Change event for a particular CommandBarComboBox control, use the WithEvents keyword to declare a variable, and then set the variable to the CommandBarComboBox control. When the Change event is triggered, it executes the macro or code that you specified with the OnAction property of the control.