MailItem Members
Use the MailItem object to set the attributes of the email sent using the MsoEnvelope object. Use the MsoEnvelope object’s Item property to get a reference to this object. The MailItem object has the following members
. MailItem is part of the Outlook object library and many of the members don’t apply within Excel. Key members that are of use from within Excel (shown in bold) are covered in the following reference section:
Warning
To declare a variable as a MailItem object, you must first add a reference to the Microsoft Outlook type library.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access