Email Object

Microsoft Word Visual Basic

Email Object

         
Documents (Document) Email
EmailAuthor

Represents an e-mail message. There is no Emails collection; each Document object contains only one Email object.

Using the Email Object

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 returns the name of the style associated with the current e-mail author.

MsgBox ActiveDocument.Email _
    .CurrentEmailAuthor.Style.NameLocal

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