CommandBars 属性CommandBars Property

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

expressionexpression. CommandBars

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

示例Example

本示例删除所有未在屏幕上显示的自定义命令栏。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 
Next