Share via


Application.CommandBars Property

Publisher Developer Reference

Sets or returns a CommandBars collection that represents the menu bar and all the toolbars in Microsoft Office 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.

Visual Basic for Applications
  Sub CmdBars()
With <strong>CommandBars</strong>
    .LargeButtons = False
    .DisplayTooltips = True
    .AdaptiveMenus = False
End With

End Sub

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

Visual Basic for Applications
  Sub ShowObjectsToolbar
With <strong>CommandBars</strong>("Objects")
    .Visible = True
    .Position = msoBarBottom
End With

End Sub

See Also