GoToNext Method
TOC
Collapse the table of content
Expand the table of content

Selection.GoToNext Method (Word)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Returns a Range object that refers to the start position of the next item or location specified by the What argument. If you apply this method to the Selection object, the method moves the selection to the specified item (except for the wdGoToGrammaticalError, wdGoToProofreadingError, and wdGoToSpellingError constants).

expression .GoToNext(What)

expression Required. A variable that represents a Selection object.

Parameters

Name

Required/Optional

Data Type

Description

What

Required

WdGoToItem

The item where the specified range or selection is to be moved.

Note Note

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.

Show:
© 2016 Microsoft