TextRange.Fields Property (Publisher)

Returns a Fields object that represents all the fields in the specified text range.

Syntax

expression. Fields

expression A variable that represents a TextRange object.

Return Value

Fields

Example

This example makes the first field in the first shape on the first page of the active publication bold.

Sub CountFields() 
 ActiveDocument.Pages(1).Shapes(1).TextFrame _ 
 .TextRange.Fields(1).TextRange.Font.Bold = msoTrue 
End Sub