Gets a count of the number of command bars in the host application. Read-only.

Note
The use of CommandBars in some Microsoft Office applications has been superseded by the new Ribbon user interface. For more information, search help for the keyword "Ribbon."

Syntax

expression.Count

expression An expression that returns a CommandBars object.

Return Value
Integer

See also: