TableOfFigures.LowerHeadingLevel property (Word)
Returns or sets the ending heading level for a table of figures. Read/write Long.
Syntax
expression. LowerHeadingLevel
expression Required. A variable that represents a 'TableOfFigures' collection.
Remarks
This property corresponds to the ending value used with the \o switch for a Table of Contents (TOC) field. Use the UpperHeadingLevel property to set the starting 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.
Example
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
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