CommandEvent Property

      Applies To

Returns the CommandEvents object for the specified command.

Syntax

Property Get CommandEvents(GUID As String, id As Long)As CommandEvent

The property has these parts:

Part Description
GUID A required String specifying the GUID for the command group. If the GUID is Null, then this method returns a CommandEvents object representing all commands in the environment.
id A required Long specifying an index into the command group for the particular command. If the index is Null, then this method returns a CommandEvents object representing all commands in the group.