Partager via


Frame.RelativeVerticalPosition Property (Word)

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.

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

See Also

Concepts

Frame Object

Frame Object Members