Class MailMessage (Word VBA)

The class MailMessage represents the active email message if you are using Microsoft Word as your email editor.

Class Application gives access to class MailMessage.

To use a MailMessage class variable it first needs to be instantiated, for example

Dim mme as MailMessage
Set mme = Application.MailMessage

MailMessage class variables can be set using the Application.MailMessage procedure.

Methods

CheckName - Validates the email addresses that appear in the To, Cc, and Bcc lines in the active email message.

Delete - Deletes the specified mail message.

DisplayMoveDialog - Displays the Move dialog box, in which the user can specify a new location for the active email message in an available message store.

DisplayProperties - Displays the Properties dialog box for the active email message.

DisplaySelectNamesDialog - Displays the Select Names dialog box, in which the user can add addresses to the To, Cc, and Bcc lines in the active, unsent email message.

Forward - Opens a new email message with an empty To line for forwarding the active message.

GoToNext - Displays the next mail message if you are using Word as your email editor.

GoToPrevious - Displays the previous mail message if you are using Word as your email editor.

Reply - Opens a new email message — with the sender's address on the To line — for replying to the active message.

ReplyAll - Opens a new email message — with the sender's and all other recipients' addresses on the To and Cc lines, as appropriate — for replying to the active message.

ToggleHeader - Toggles the display of the header in the active email message.