Edit

Share via


TableOfFigures.IncludeLabel property (Word)

True if the caption label and caption number are included in a table of figures. Read/write Boolean.

Syntax

expression. IncludeLabel

expression An expression that returns a 'TableOfFigures' object.

Example

This example formats the first table of figures in the active document to exclude caption labels (Figure 1, for example).

If ActiveDocument.TablesOfFigures.Count >= 1 Then 
 ActiveDocument.TablesOfFigures(1).IncludeLabel = False 
End If

This example adds a table of figures in place of the selection and then formats the table to include caption labels.

Dim tofTemp As TableOfFigures 
 
Set tofTemp = ActiveDocument.TablesOfFigures _ 
 .Add(Range:=Selection.Range, _ 
 Caption:="Figure") 
 
tofTemp.IncludeLabel = True

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.