TableOfFigures.Caption property (Word)

Returns or sets the label that identifies the items to be included in a table of figures. Read/write String.

Syntax

expression.Caption

expression A variable that represents a 'TableOfFigures' collection.

Remarks

This property corresponds to the \c switch for a TOC field.

Example

This example inserts a table caption and then changes the caption of the first table of figures to "Table."

Selection.Collapse Direction:=wdCollapseStart 
Selection.Range.InsertCaption "Table" 
If ActiveDocument.TablesOfFigures.Count >= 1 Then 
 ActiveDocument.TablesOfFigures(1).Caption = "Table" 
End If

See also

TableOfFigures Object

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.