Options Method

Microsoft Word Visual Basic

expression.Options

expression    Required. An expression that returns an Envelope object.

Remarks

The Options method works only if the document is the main document of an envelope mail merge.

Example

This example checks that the active document is an envelope mail merge main document, and if it is, displays the Envelope Options dialog box.

Sub EnvelopeOptions()
    If ThisDocument.MailMerge.MainDocumentType = wdEnvelopes Then
        ActiveDocument.Envelope.Options
    End If
End Sub