Publisher) (Application.CommandBars 属性

设置或返回表示 Microsoft Publisher 中菜单栏和所有工具栏的命令 栏 集合。

语法

表达式。命令栏

expression:表示 Application 对象的变量。

返回值

CommandBars

示例

以下示例增大所有的命令栏按钮,启用"工具提示",并在显示菜单时显示所有的菜单项。

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

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。