RelativeHorizontalPosition Property

WdRelativeHorizontalPosition.

Can be one of the following WdRelativeHorizontalPosition constants.

wdRelativeHorizontalPositionCharacter

wdRelativeHorizontalPositionColumn

wdRelativeHorizontalPositionMargin

wdRelativeHorizontalPositionPage.

Example

As it relates to the wdRelativeHorizontalPositionMargin constant.

This example adds a frame around the selection and aligns the frame horizontally with the right margin.

Set myFrame = ActiveDocument.Frames.Add(Range:=Selection.Range)
With myFrame
    .RelativeHorizontalPosition = _
        wdRelativeHorizontalPositionMargin
    .HorizontalPosition = wdFrameRight
End With

As it relates to the wdRelativeHorizontalPositionPage constant.

This example repositions the selected shape object.

With Selection.ShapeRange
    .Left = InchesToPoints(0.6)
    .RelativeHorizontalPosition = wdRelativeHorizontalPositionPage
    .Top = InchesToPoints(1)
    .RelativeVerticalPosition = wdRelativeVerticalPositionParagraph
End With

Applies to | Frame Object | Rows Collection Object | Shape Object | ShapeRange Collection Object

See Also | HorizontalPosition Property | Left Property