应用于 Application 对象的 CommandBars 属性。
返回 PowerPoint 中代表所有命令栏的 CommandBars 集合。只读。
应用于 Presentation 对象的 CommandBars 属性。
返回代表在主机容器应用程序和 PowerPoint 中合并命令栏集的 CommandBars 集合。仅当容器是 DocObject 服务器(如 Microsoft 活页夹)并且 PowerPoint 作为 OLE 服务器时,此属性返回有效对象。只读。
有关返回集合中单个元素的详细信息,请参阅返回集合中的对象。
本示例放大所有的工具栏按钮并启用工具提示。
With Application.CommandBars
.LargeButtons = True
.DisplayTooltips = True
End With
本示例在应用程序窗口的顶部显示具有合并命令栏集的“格式”命令栏。
With ActivePresentation.CommandBars("Formatting")
.Visible = True
.Position = msoBarTop
End With