Frames.Add Method
Word Developer Reference |
Returns a Frame object that represents a new frame added to a range, selection, or document.
Syntax
expression.Add(Range)
expression Required. A variable that represents a Frames collection.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Range | Required | Range | The range that you want the frame to surround. |
Return Value
Frame
Example
This example adds a frame around the selection.
Visual Basic for Applications |
---|
|
This example adds a frame around the third paragraph in the selection.
Visual Basic for Applications |
---|
|
See Also