Table of contents
TOC
Collapse the table of content
Expand the table of content

TextRange.Fields Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

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
© 2018 Microsoft