Frame Object

Multiple objects
Frame
Multiple objects

Represents a frame. The Frame object is a member of the Frames collection. The Frames collection includes all frames in a selection, range, or document.

Using the Frame Object

Use Frames(index), where index is the index number, to return a single Frame object. The index number represents the position of the frame in the selection, range, or document. The following example allows text to wrap around the first frame in the active document.

ActiveDocument.Frames(1).TextWrap = True

Use the Add method to add a frame around a range. The following example adds a frame around the first paragraph in the active document.

ActiveDocument.Frames.Add _
    Range:=ActiveDocument.Paragraphs(1).Range

Remarks

You can wrap text around Shape or ShapeRange objects by using the WrapFormat property. You can position a Shape or ShapeRange object by using the Top and Left properties.

Properties | Application Property | Borders Property | Creator Property | Height Property | HeightRule Property | HorizontalDistanceFromText Property | HorizontalPosition Property | LockAnchor Property | Parent Property | Range Property | RelativeHorizontalPosition Property | RelativeVerticalPosition Property | Shading Property | TextWrap Property | VerticalDistanceFromText Property | VerticalPosition Property | Width Property | WidthRule Property

Methods | Copy Method | Cut Method | Delete Method | Select Method

Parent Objects | Find Object | Replacement Object | Style Object

Child Objects | Borders Object | Range Object | Shading Object

See Also | TextFrame Object