CaptionLabel.IncludeChapterNumber property (Word)

True if a chapter number is included with page numbers or a caption label. Read/write Boolean.

Syntax

expression. IncludeChapterNumber

expression Required. A variable that represents a 'CaptionLabel' object.

Example

This example adds the chapter number from the Heading 2 style to figure captions, sets the caption numbering style, and then inserts a new figure caption. The document should already contain a Heading 2 style with numbering.

With CaptionLabels(wdCaptionFigure) 
 .IncludeChapterNumber = True 
 .ChapterStyleLevel = 2 
 .NumberStyle = wdCaptionNumberStyleUppercaseLetter 
End With 
Selection.InsertCaption Label:="Figure", Title:=": History"

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.