CommandBarButton Object
Office Developer Reference |
Represents a button control on a command bar.
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." |
Example
Use Controls(index), where
index
is the index number of the control, to return a CommandBarButton object. Note that the Type property of the control must be msoControlButton. Assuming that the second control on the command bar named "Custom" is a button, the following example changes the style of that button.
Visual Basic for Applications |
---|
|
Note |
---|
You can also use the FindControl method to return a CommandBarButton object. |
See Also
- Object Model Reference
- CommandBarButton Object Members
- How to: Add a New Navigation Group and Move a Folder into that Group
- How to: Customize a Context Menu to Support Moving Items between Calendars
- How to: Customize an Item Context Menu
- How to: Enumerate, Show, Hide, and Position Modules in the Navigation Pane
- How to: Share Contact Information Including the Business Card