CommandBars 属性 (Excel Graph)CommandBars property (Excel Graph)

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



_表达式_是必需的。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.