Command Bar Object and the Command Bars Collection Object

The CommandBar object holds the properties and methods for a specific CommandBar in the CommandBars collection. The properties and methods are similar to the CommandBars collection, but only apply to the individual CommandBar referenced. The CommandBars collection contains a list of all CommandBars (known as Toolbars to most users) in the container application. Use CommandBars(Index) to return a reference to a specific CommandBar, as in the following example:

Dim oBar As CommandBar

Set oBar = CommandBars("Wrox")

0 0

Post a comment