HorizontalPosition Property
Applies To
Frame object.
Description
Returns or sets the horizontal distance between the edge of the frame and the item specified by the RelativeHorizontalPosition property. Can be a number that indicates a measurement in points, or can be one of the following WdFramePosition constants: wdFrameLeft, wdFrameRight, wdFrameCenter, wdFrameInside, or wdFrameOutside. Read/write Single.
See Also
RelativeHorizontalPosition property.
Example
This example aligns the first frame in the active document horizontally with the right margin.
If ActiveDocument.Frames.Count >= 1 Then
With ActiveDocument.Frames(1)
.RelativeHorizontalPosition = wdRelativeHorizontalPositionMargin
.HorizontalPosition = wdFrameRight
End With
End If