Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
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 an 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
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.