DefaultLabelName Property

Applies To

MailingLabel object.

Description

Returns or sets the name for the default mailing label. Read/write String.

Note To find the string for the specified built-in label, select the label in the Label Options dialog box (Tools menu, Envelopes and Labels dialog box, Labels tab, Options button). Then click Details and look at the Label name box, which contains the correct string to use for this property. To set a custom label as the default mailing label, use the label name that appears in the Details dialog box, or use the Name property with a CustomLabel object.

See Also

CustomLabels collection object, MailingLabel object.

Example

This example returns the name of the current default mailing label.

Msgbox Application.MailingLabel.DefaultLabelName
This example sets the Avery Standard, 5160 Address label as the default mailing label.

Application.MailingLabel.DefaultLabelName = "5160"