Partager via


Paragraph.Next Method (Word)

Returns a Paragraph object that represents the next paragraph.

Syntax

expression .Next(Count)

expression Required. A variable that represents a Paragraph object.

Parameters

Name

Required/Optional

Data Type

Description

Count

Optional

Variant

The number of paragraphs by which you want to move ahead. The default value is one.

Return Value

Paragraph

Example

This example inserts a number and a tab before the first nine paragraphs in the active document.

For n = 0 To 8 
 Set myRange = ActiveDocument.Paragraphs(1).Next(Count:=n).Range 
 myRange.Collapse Direction:=wdCollapseStart 
 myRange.InsertAfter n + 1 & vbTab 
Next n

See Also

Concepts

Paragraph Object

Paragraph Object Members