TypeParagraph Method

Microsoft Word Visual Basic

TypeParagraph Method

       

Inserts a new, blank paragraph. If the selection isn't collapsed to an insertion point, it's replaced by the new paragraph. Use the InsertParagraphAfter or InsertParagraphBefore method to insert a new paragraph without deleting the contents of the selection.

Note   This method corresponds to the functionality of the ENTER key.

expression.TypeParagraph

expression   Required. An expression that returns a Selection object.

Example

This example collapses the selection to its end and then inserts a new paragraph following it.

With Selection
    .Collapse Direction:=wdCollapseEnd
    .TypeParagraph
End With