TableOfFigures.UpperHeadingLevel property (Word)

Returns or sets the starting heading level for a table of figures. Read/write Long.


expression. UpperHeadingLevel

expression Required. A variable that represents a 'TableOfFigures' collection.


This property corresponds to the starting value used with the \o switch for a Table of Contents (TOC) field. Use the LowerHeadingLevel property to set the ending heading level. For example, to set the TOC field syntax {TOC \o "1-3"}, set the LowerHeadingLevel property to 3 and the UpperHeadingLevel property to 1.


This example formats the first table of table of figures in the active document to compile all headings that are formatted with either the Heading 8 or Heading 9 style.

If ActiveDocument.TablesOfFigures.Count >= 1 Then 
 With ActiveDocument.TablesOfFigures(1) 
 .UseHeadingStyles = True 
 .UseFields = False 
 .UpperHeadingLevel = 8 
 .LowerHeadingLevel = 9 
 End With 
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.