Share via


Selection.Fields Property (Word)

Returns a read-only Fields collection that represents all the fields in the selection.

Syntax

expression .Fields

expression Required. A variable that represents a Selection object.

Example

This example adds a DATE field at the insertion point.

With Selection 
 .Collapse Direction:=wdCollapseStart 
 .Fields.Add Range:=Selection.Range, Type:=wdFieldDate 
End With

See Also

Concepts

Selection Object Members

Selection Object