Application.CommandBars Property
Word Developer Reference |
Returns a CommandBars collection that represents the menu bar and all the toolbars in Microsoft Word.
Syntax
expression.CommandBars
expression A variable that represents an Application object.
Remarks
Use the CustomizationContext property to set the template or document context prior to accessing the CommandBars collection.
For information about returning a single member of a collection, see Returning an Object from a Collection.
Example
This example enlarges all command bar buttons and enables ToolTips.
Visual Basic for Applications |
---|
|
This example displays the Drawing toolbar at the bottom of the application window.
Visual Basic for Applications |
---|
|
This example adds the Versions command button to the Standard toolbar.
Visual Basic for Applications |
---|
|
See Also