Sets or gets the horizontal distance (in pixels) of the CommandBar from the left edge of the object relative to the screen. Read/write.

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.Left

expression Required. A variable that represents a object.

Example

This example moves the command bar named Custom from its docked position along the top of the window to the left edge of the window.

Visual Basic for Applications
Set myBar = CommandBars("Custom") With myBar .Position = 1 .RowIndex = 2 .Left = 0 End With

See also: