Share via


Frame.RelativeHorizontalPosition Property

Word Developer Reference

Specifies the relative horizontal position of a frame. Read/write WdRelativeHorizontalPosition.

Syntax

expression.RelativeHorizontalPosition

expression   An expression that represents a Frame object.

Example

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

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

See Also