Compartilhar via


Field.Select Method

Word Developer Reference

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.

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

See Also