Range.GoToNext Method

Returns a Range object that refers to the start position of the next item or location specified by the What argument.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Function GoToNext ( _
    What As WdGoToItem _
) As Range
'Usage
Dim instance As Range
Dim What As WdGoToItem
Dim returnValue As Range

returnValue = instance.GoToNext(What)
Range GoToNext(
    WdGoToItem What
)

Parameters

Return Value

Type: Microsoft.Office.Interop.Word.Range

Remarks

When you use this method with the wdGoToGrammaticalError, wdGoToProofreadingError, or wdGoToSpellingError constant, the Range object that's returned includes any grammar error text or spelling error text.

See Also

Reference

Range Interface

Range Members

Microsoft.Office.Interop.Word Namespace