Share via


TableOfFigures.Caption Property

Word Developer Reference

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."

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

See Also