LabelOptions Method

Microsoft Word Visual Basic

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