Share via


CaptionLabels.Add Method (Word)

Returns a CaptionLabel object that represents a custom caption label.

Syntax

expression .Add(Name)

expression Required. A variable that represents a CaptionLabels collection.

Parameters

Name

Required/Optional

Data Type

Description

Name

Required

String

The name of the custom caption label.

Return Value

CaptionLabel

Example

This example adds a custom caption label named Demo Slide. To verify that the custom label is added, view the Label combo box in the Caption dialog box, accessed from the Reference command on the Insert menu.

Sub CapLbl() 
 CaptionLabels.Add Name:="Demo Slide" 
End Sub

See Also

Concepts

CaptionLabels Object Members

CaptionLabels Collection Object