VBA to Change the Setting of an Open Email

A

armsys

1. In Outlok 2003, an email mesage (either a blank "Untitled Message" or a reply message) is already opened.
2. For the above-mentioned email message: I would like to perform:
a. Convert the format to HTML;
b. Attach to a template ("MyTemplate.dot")
Please help. Thanks.
 
K

Ken Slovak - [MVP - Outlook]

The ActiveInspector is the currently active Inspector. Inspector.CurrentItem
will give you the item being displayed in the Inspector. If the current item
is a MailItem then you can use MailItem.BodyFormat to change the format to
HTML. The BodyFormat setting you want is OlBodyFormat.olFormatHTML.

Once you have the item in the Inspector you can add your attachment by using
the MailItem.Attachments.Add method. The attachment must be in the file
system and you must supply the path as well as the full name of the desired
attachment.




1. In Outlok 2003, an email mesage (either a blank "Untitled Message" or a
reply message) is already opened.
2. For the above-mentioned email message: I would like to perform:
a. Convert the format to HTML;
b. Attach to a template ("MyTemplate.dot")
Please help. Thanks.
 
Top