Share via


TableOfFigures.TableID Property

Word Developer Reference

Returns or sets a one-letter identifier that is used to build a table of figures from TOC fields. Read/write String.

Syntax

expression.TableID

expression   Required. A variable that represents a TableOfFigures collection.

Remarks

This property corresponds to the \f switch for a TOC field. For example, "T" builds a table of figures from TOC fields using the table identifier T.

Example

This example adds a table of figures at the beginning of the active document and then formats the table to compile "B" entries.

Visual Basic for Applications
  Set myRange = ActiveDocument.Range(Start:=0, End:=0)
Set myTOF = ActiveDocument.TablesOfFigures.Add(Range:=myRange)
With myTOF
    .UseFields = True
    .UseHeadingStyles = False
    .TableID = "B"
    .Caption = ""
End With

See Also