InsertParagraph Method
Applies To
Range object, Selection object.
Description
Replaces the specified range or selection with a new paragraph.
Note After this method has been used, the range or selection is the new paragraph.
Syntax
expression.InsertParagraph
expression Required. An expression that returns a Range or Selection object.
Remarks
If you don't want to replace the range or selection, use the Collapse method before using this method. The InsertParagraphAfter method inserts a new paragraph following a Range or Selection object.
See Also
InsertAfter method, InsertBefore method, InsertParagraphAfter method, InsertParagraphBefore method.
Example
This example inserts a new paragraph at the beginning of the active document.
Set myRange = ActiveDocument.Range(0, 0)
With myRange
.InsertParagraph
.InsertBefore "Dear Sirs,"
End With
This example collapses the selection and then inserts a paragraph mark at the insertion point.
With Selection
.Collapse Direction:=wdCollapseStart
.InsertParagraph
.Collapse Direction:=wdCollapseEnd
End With