Share via


CommandBars Property [Publisher 2003 VBA Language Reference]

Sets or returns a CommandBars collection (Microsoft Office 2003 Visual Basic Reference) that represents the menu bar and all the toolbars in Microsoft Publisher.

expression.CommandBars

expression Required. An expression that returns one of the objects in the Applies To list.

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

Applies to | Application Object