Returnsa Paragraph object that represents the next paragraph.
expression.Next(Count)
expression Required. An expression that returns a Paragraph object.
Count Optional Variant. The number of paragraphs by which you want to move ahead. The default value is one.
Next method as it applies to the Range and Selection objects.
Returns a Range object that represents the specified unit relative to the specified selection or range.
expression.Next(Unit, Count)
expression Required. An expression that returns one of the above objects.
Unit Optional Variant. The type of units by which to count. Can be any WdUnits constant.
WdUnits can be one of these WdUnits constants. |
wdCharacter Default. |
wdWord |
wdSentence |
wdParagraph |
wdSection |
wdStory |
wdCell |
wdColumn |
wdRow |
wdTable |
wdLine Can be used if expression returns a Selection object. |
Count Optional Variant. The number of units by which you want to move ahead. The default value is one.
Remarks
If the Range or Selection is just before the specified Unit, the Range or Selection is moved to the following unit. For example, if the Selection is just before a word, the following instruction moves the Selection forward to the following word.
Selection.Next(Unit:=wdWord, Count:=1).Select
Next method as it applies to the Browser object.
Moves the selection to the next item indicated by the browser target. Use the Target property to change the browser target.
expression.Next
expression Required. An expression that returns a Browser object.
Example
As it applies to the Browser object.
This example moves the insertion point just before the next comment reference marker in the active document.
With Application.Browser
.Target = wdBrowseComment
.Next
End With
As it applies to the Paragraph object
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
This example selects the paragraph following the current selection.
Selection.Next(Unit:=wdParagraph, Count:=1).Select