Left Property

Applies To

Application object, Shape object, ShapeRange collection object, Task object, Window object.

Description

Application, Task, or Window object: Returns or sets the horizontal position of the specified window or task, in points. Read/write Long.

Shape or ShapeRange object: Returns or sets the horizontal position of the specified shape or shape range, in points. Read/write Single.

Remarks

The position of a shape is measured from the upper-left corner of the shape's bounding box to the shape's anchor. The RelativeHorizontalPosition property controls whether the anchor is positioned alongside the column, the margin, or the edge of the page.

For a ShapeRange object that contains more than one shape, the Left property sets the horizontal position of each shape.

See Also

AddShape method, Anchor property, Height property, RelativeHorizontalPosition property, Top property, Width property.

Example

This example sets the horizontal position of the active window to 100 points.

With ActiveWindow
    .WindowState = wdWindowStateNormal
    .Left = 100
    .Top = 0
End With
This example sets the horizontal position of the first shape in the active document to 1 inch from the left edge of the page.

With ActiveDocument.Shapes(1)
    .RelativeHorizontalPosition = wdRelativeHorizontalPositionPage
    .Left = InchesToPoints(1)
End With
This example sets the horizontal position of the first and second shapes in the active document to 1 inch from the left edge of the column.

With ActiveDocument.Shapes.Range(Array(1, 2))
    .RelativeHorizontalPosition = wdRelativeHorizontalPositionColumn
    .Left = InchesToPoints(1)
End With