CaptionLabel.NumberStyle property (Word)

Returns or sets the number style for the CaptionLabel object. Read/write WdCaptionNumberStyle.

Syntax

expression. NumberStyle

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

Remarks

Some of the constants listed above may not be available to you, depending on the language support (U.S. English, for example) that you've selected or installed.

Example

This example inserts a caption at the insertion point. The caption letter is formatted as an uppercase letter.

CaptionLabels(wdCaptionFigure).NumberStyle = _ 
 wdCaptionNumberStyleUppercaseLetter 
Selection.Collapse Direction:=wdCollapseEnd 
Selection.InsertCaption Label:=wdCaptionFigure

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.