Share via


Email Object

Word Developer Reference

Represents an e-mail message.

Remarks

Use the Email property to return the Email object. The Email object and its properties are valid only if the active document is an unsent forward, reply, or new e-mail message.

This example displays the name of the style associated with the current e-mail author.

Visual Basic for Applications
  MsgBox ActiveDocument.Email _
    .CurrentEmailAuthor.Style.NameLocal

The author style name is the same as the value returned by the UserName property.

Bb179085.vs_note(en-us,office.12).gif  Note
There is no Emails collection; each Document object contains only one Email object.

See Also