ChapterStyleLevel Property 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