Left Property
Applies To
Assistant object, CommandBar object, CommandBarButton object, CommandBarComboBox object, CommandBarControl object, CommandBarPopup object.
Description
CommandBar or CommandBarControl object: Returns or sets the distance (in pixels) from the left edge of the specified command bar or command bar control to the left edge of the screen. Returns the distance from the left side of the docking area. Read/write Long for CommandBar, read-only Long for CommandBarControl.
Assistant object: Sets or returns the horizontal position of the Office Assistant window (in points), relative to the screen. Read/write Long.
See Also
Top property.
Example
This example adjusts the position of the custom command bar named "Custom" by moving it to the left 110 pixels more than the default. The example also makes this command bar the first one to be docked by changing the row index number to 1.
Set myBar = CommandBars("Custom")
With myBar
.RowIndex = 1
.Left = 140
End With
This example displays the Office Assistant and moves it to the specified position.
With Assistant
.Visible = True
.Left = 300
.Top = 300
End With