CommandBars 属性CommandBars Property

返回一个 CommandBars 对象,代表 Microsoft Graph 命令栏。Returns a CommandBars object that represents the Microsoft Graph command bars. 只读的命令栏 对象。Read-only CommandBars object.

表达式expression. CommandBars

expression:必需。expression Required. 返回“应用于”**** 列表中的一个对象的表达式。An expression that returns one of the objects in the Applies To list.


本示例删除所有未在屏幕上显示的自定义命令栏。This example deletes all custom command bars that aren't visible.

For Each bar In myChart.Application.CommandBars 
 If Not bar.BuiltIn And Not bar.Visible Then bar.Delete 

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.