![]() |
VBA to Change the Setting of an Open Email
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. |
VBA to Change the Setting of an Open Email
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. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "armsys" wrote in message ... 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. |
All times are GMT +1. The time now is 03:36 PM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com