Selection.NextField 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.

Selects the next field.

expression .NextField

expression Required. A variable that represents a Selection object.

Return Value

Field

If this method finds a field, it returns a Field object; if not, it returns Nothing.

This example updates the next field in the selection.

If Not (Selection.NextField Is Nothing) Then 
 Selection.Fields.Update 
End If

This example selects the next field in the selection, and if a field is found, displays a message in the status bar.

Set myField = Selection.NextField 
If Not (myField Is Nothing) Then StatusBar = "Field found"
Show: