TablesOfFigures object (Word)
A collection of TableOfFigures objects that represent the tables of figures in a document.
Remarks
Use the TablesOfFigures property to return the TablesOfFigures collection. The following example applies the Classic format to all tables of figures in the active document.
ActiveDocument.TablesOfFigures.Format = wdTOFClassic
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.
ActiveDocument.TablesOfFigures.Add Range:=Selection.Range, _
IncludeLabel:=True, IncludePageNumbers:=True
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.
ActiveDocument.TablesOfFigures(1).UpdatePageNumbers
See also
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for