CommandInfo Method

      Applies To

Finds the command in the command group associated with the given CommandBarControl and returns the command's GUID and ID.

Syntax

Function CommandInfo(CommandBarControl As CommandBarControl, GUID As String, ID As Long)

The syntax has these parts:

Part Description
CommandBarControl Required. The CommandBarControl associated with the command.
GUID Required String. ByRef argument for passing back the command’s GUID
ID Required Long. ByRef argument for passing back the command’s ID.