EmailAuthor Object

Microsoft Word Visual Basic

EmailAuthor Object

Email EmailAuthor
Style

Represents the author of an e-mail message. There is no EmailAuthors collection; each Email object contains only one EmailAuthor object.

Using the EmailAuthor Object

Use the CurrentEmailAuthor property to return the EmailAuthor object. The EmailAuthor 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 style associated with the current author for unsent replies, forwards, or new e-mail messages, and displays the name of the font associated with this style.

Set MyEmailStyle = _
    ActiveDocument.Email.CurrentEmailAuthor.Style
Msgbox MyEmailStyle.Font.Name