Item Property (CommandBars and CommandBarControls Collections)

Applies To

CommandBarControls collection object, CommandBars collection object.

Description

Returns a CommandBar object from a CommandBars collection, or returns a CommandBarControl object from a CommandBarControls collection. Read-only.

Syntax

expression.Item(Index)

expression Required. An expression that returns a CommandBars or CommandBarControls object.

Index Required Variant. The name or index number of the object to be returned. Note that you can only use index numbers to return PropertyTest objects from the PropertyTests collection.