CommandBars.ActionControl Property
Office Developer Reference |
Gets the CommandBarControl object whose OnAction property is set to the running procedure. Read-only.
Note |
---|
The use of CommandBars in some Microsoft Office applications has been superseded by the new Ribbon user interface. For more information, search help for the keyword "Ribbon." |
Syntax
expression.ActionControl
expression A variable that represents a CommandBars object.
Example
This example creates a command bar named “Custom”, adds three buttons to it, and then uses the ActionControl property and the Tag property to determine which command bar button was last clicked.
Visual Basic for Applications |
---|
|
The following subroutine responds to the OnAction method and determines which command bar button was last clicked.
Visual Basic for Applications |
---|
|
See Also