Class MailMessage (Word VBA)

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

The main procedure of class MailMessage is Delete

Set

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.

Themes

The following procedures in this class have been grouped together and are described on a separate theme page

Display/Show with its procedures DisplayMoveDialog, DisplayProperties and DisplaySelectNamesDialog

Methods

This is the main method of the MailMessage class

Delete - Deletes the specified mail message.

Application.MailMessage.Delete

Properties

Parent returns an object that represents the parent object of the specified MailMessage object.

Dim objParent As Object
Set objParent = Application.MailMessage.Parent