Share via


TableOfFigures Object

Word Developer Reference

Represents a single table of figures in a document. The TableOfFigures object is a member of the TablesOfFigures collection. The TablesOfFigures collection includes all the tables of figures in a document.

Remarks

Use TablesOfFigures(Index), where Index is the index number, to return a single TableOfFigures object. The index number represents the position of the table of figures in the document. The following example updates the page numbers of the items in the first table of figures in the active document.

Visual Basic for Applications
  ActiveDocument.TablesOfFigures(1).UpdatePageNumbers

Use the Add method to add a table of figures to a document. A table of figures lists figure captions in the order in which they appear in the document. The following example replaces the selection in the active document with a table of figures that includes caption labels and page numbers.

Visual Basic for Applications
  ActiveDocument.TablesOfFigures.Add Range:=Selection.Range, _
    IncludeLabel:=True, IncludePageNumbers:=True

See Also