Gets a CommandBars collection. 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.CommandBars

expression A variable that represents a MsoEnvelope object.

Example

The following example return the CommandBars collection from the MsoEnvelope object in Microsoft Word.

Visual Basic for Applications
Dim cbars As CommandBars Set cbars = Application.ActiveDocument.MailEnvelope.Commandbars 
command command bars commandbars commandbars property ofv

See also: