CaptionLabel.ChapterStyleLevel property (Word)

Returns or sets the heading style that marks a new chapter when chapter numbers are included with the specified caption label. Read/write Long.

Syntax

expression. ChapterStyleLevel

expression A variable that represents a 'CaptionLabel' object.

Remarks

The number 1 corresponds to Heading 1, 2 corresponds to Heading 2, and so on. The IncludeChapterNumber property must be set to True for chapter numbers to be included with caption labels.

Example

This example formats the table's caption label to include a chapter number. The chapter number is taken from paragraphs formatted with the Heading 2 style.

With CaptionLabels(wdCaptionTable) 
 .IncludeChapterNumber = True 
 .ChapterStyleLevel = 2 
End With

See also

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