LabelOptions Method

Microsoft Word Visual Basic

LabelOptions Method

       

Displays the Label Options dialog box.

expression.LabelOptions

expression   Required. An expression that returns a MailingLabel object.

Remarks

The LabelOptions method works only if the document is the main document of a mailing labels mail merge.

Example

This example determines if the current document is a Mailing Label document and, if it is, displays the Label Options dialog box.

Sub LabelOps()
    If ThisDocument.MailMerge _
        .MainDocumentType = wdMailingLabels Then
        Application.MailingLabel.LabelOptions
    End If
End Sub