Share via


Frame.RelativeVerticalPosition Property

Word Developer Reference

Specifies the relative vertical position of a frame. Read/write WdRelativeVerticalPosition.

Syntax

expression.RelativeVerticalPosition

expression   A variable that represents a Frame object.

Example

This example adds a frame around the selection and aligns the frame vertically with the top of the page.

Visual Basic for Applications
  Set myFrame = ActiveDocument.Frames.Add(Range:=Selection.Range)
With myFrame
    .RelativeVerticalPosition = wdRelativeVerticalPositionPage
    .VerticalPosition = wdFrameTop
End With

See Also