Frame.RelativeHorizontalPosition Property (Word)
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.
Set myFrame = ActiveDocument.Frames.Add(Range:=Selection.Range)
With myFrame
.RelativeHorizontalPosition = _
wdRelativeHorizontalPositionMargin
.HorizontalPosition = wdFrameRight
End With