Muokkaa

Jaa


Shape.Left property (Word)

Returns or sets a Single that represents the horizontal position, measured in points, of the specified shape or shape range. Can also be any valid WdShapePosition constant. Read/write.

Syntax

expression.Left

expression Required. A variable that represents a Shape object.

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 a character, column, margin, or the edge of the page.

Example

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

See also

Shape Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.