Click Event

See Also      Applies To

Occurs when the OnAction property for the corresponding CommandBarControl object is set or returned.

Syntax

Event Click (ByVal CommandBarControl As CommandBarControl, ByRef handled As Boolean, ByRef CancelDefault As Boolean)

This syntax has these parts:

Part Description
CommandBarControl The source of the Click event.
handled When the environment invokes the first handler for the Click event, it passes False for this argument. As each subsequent handler of the Click event is invoked, the environment passes the previous handler’s return value for this parameter. By convention, whenever this argument is True, the handler should do nothing.
CancelDefault If a handler returns True through this parameter, then the environment should not invoke the built-in command. This parameter has no meaning for user-defined commands.