Selection.PreviousField Method (Word)

Office 2013 and later

Contribute to this content

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

Selects and returns the previous field.

expression .PreviousField

expression Required. A variable that represents a Selection object.

Return Value


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

This example updates the previous field (the field immediately preceding the selection).

If Not (Selection.PreviousField Is Nothing) Then 
End If

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

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