Compartilhar via


Document.MailEnvelope Property

Word Developer Reference

Returns an MsoEnvelope object that represents an e-mail header for a document.

Syntax

expression.MailEnvelope

expression   An expression that returns a Document object.

Example

This example sets the comments for the e-mail header of the active document.

Visual Basic for Applications
  Sub HeaderComments()
ActiveDocument.<strong class="bterm">MailEnvelope</strong>.Introduction = _
    "Please review this document and let me know " &amp; _
    "what you think.  I need your input by Friday." &amp; _
    "  Thanks."

End Sub

See Also