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
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.