CommandBars Property Example

This example deletes all custom command bars that aren’t visible.

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