UseFields Property

Applies To

TableOfContents object, TableOfFigures object.

Description

True if TC (Table of Contents Entry) fields are used to create a table of contents or a table of figures. Read/write Boolean.

See Also

TableID property, UseHeadingStyles property.

Example

This example formats the first table of contents in the active document to use heading styles instead of TC fields.

If ActiveDocument.TablesOfContents.Count >= 1 Then
    With ActiveDocument.TablesOfContents(1)
        .UseFields = False
        .UseHeadingStyles = True
    End With
End If
This example adds a table of figures after the selection and formats the table to compile entries with the "B" identifier.

Selection.Collapse Direction:=wdCollapseEnd
Set myTOF = ActiveDocument.TablesOfFigures.Add(Range:=Selection.Range)
With myTOF
    .UseFields = True
    .TableId = "B"
    .Caption = ""
End With