Field.Select method (Word)

Selects the specified field.

Syntax

expression.Select

expression Required. A variable that represents a 'Field' object.

Remarks

After using this method, use the Selection object to work with the selected items. For more information, see Working with the Selection Object.

Example

This example updates and selects the first field in the active document.

ActiveDocument.ActiveWindow.View.FieldShading = _ 
 wdFieldShadingWhenSelected 
If ActiveDocument.Fields.Count >= 1 Then 
 With ActiveDocument.Fields(1) 
 .Update 
 .Select 
 End With 
End If

See also

Field Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.