CaptionLabel.ChapterStyleLevel Property

Word Developer Reference

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.

Visual Basic for Applications
  With CaptionLabels(wdCaptionTable)
    .IncludeChapterNumber = True
    .ChapterStyleLevel = 2
End With

See Also