Table of contents
TOC
Collapse the table of content
Expand the table of content

Application.CommandBars Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

Sets or returns a CommandBars collection that represents the menu bar and all the toolbars in Microsoft Publisher.

Syntax

expression. CommandBars

_expression_A variable that represents a Application object.

Return Value

CommandBars

Example

This example enlarges all command bar buttons, enables ToolTips, and shows all menu items when displaying menus.

Sub CmdBars() 

 With CommandBars 
 .LargeButtons = False 
 .DisplayTooltips = True 
 .AdaptiveMenus = False 
 End With 

End Sub

This example displays the Objects toolbar at the bottom of the application window.

Sub ShowObjectsToolbar 

 With CommandBars("Objects") 
 .Visible = True 
 .Position = msoBarBottom 
 End With 

End Sub

See also

Concepts

Application Object

© 2018 Microsoft