Partager via


Paragraphs.Add Method (Word)

Returns a Paragraph object that represents a new, blank paragraph added to a document.

Syntax

expression .Add(Range)

expression Required. A variable that represents a Paragraphs collection.

Parameters

Name

Required/Optional

Data Type

Description

Range

Optional

Variant

The range before which you want the new paragraph to be added. The new paragraph doesn't replace the range.

Return Value

Paragraph

Remarks

If Range isn't specified, the new paragraph is added after the selection or range or at the end of the document, depending on expression.

Example

This example adds a paragraph after the selection.

Selection.Paragraphs.Add

This example adds a paragraph mark before the first paragraph in the selection.

Selection.Paragraphs.Add Range:=Selection.Paragraphs(1).Range

This example adds a paragraph mark before the second paragraph in the active document.

ActiveDocument.Paragraphs.Add _ 
 Range:=ActiveDocument.Paragraphs(2).Range

This example adds a new paragraph mark at the end of the active document.

ActiveDocument.Paragraphs.Add

See Also

Concepts

Paragraphs Collection Object

Paragraphs Object Members