A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

VBA to Change the Setting of an Open Email



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 28th 08, 02:07 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default 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.

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Perhaps not an outlook problem, but maybe a setting change will help. Patrick Keenan Outlook - General Queries 3 March 18th 08 12:44 AM
Change Outlook Setting via GP or Script Davo Outlook - General Queries 3 January 9th 07 09:16 PM
Can't change setting in Outlook 2003 Jan Outlook - Calandaring 1 November 14th 06 11:37 AM
PRF setting to open additional mailbox J Y Outlook - Installation 2 March 17th 06 01:51 AM
Change default zoom setting when scheduling appointments Jonathan Outlook - Calandaring 0 January 8th 06 11:09 AM


All times are GMT +1. The time now is 11:35 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-2025 Outlook Banter.
The comments are property of their posters.