CommandBars Property

Applies To

Application object, Chart object.

Description

Returns a CommandBars object that represents the Microsoft Graph command bars. Read-only.

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