Solved

VB and Outlook Stationary

Posted on 2007-03-19
1
296 Views
Last Modified: 2012-08-13
Using vb and COM automation is it possible to programatically select stationery when adding a new message in ms Outlook? If so what is the code?
0
Comment
Question by:staritsj
1 Comment
 
LVL 76

Accepted Solution

by:
David Lee earned 500 total points
ID: 18747180
It's possible in a couple of ways.  First, the setting for the stationery used for new messages is stored in the registry at HKCU\Software\Microsoft\Office\(version)\Common\MailSettings\NewStationery where (version) is the version of Outlook (e.g. 9.0, 10.0, 11.0, etc.)  The value stored in this key is the name of the stationery in use without an extension.  You could change the value from code before creating a new message.  Second, you can read in any HTML file and apply it to the HTMLBody property of a new item.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you don't know how to downgrade, my instructions below should be helpful.
Are you unable to connect or configure Hotmail email account in Microsoft Outlook 2010, 2007? Or Outlook.com emails are not downloading to Outlook? Lets’ see the problem and resolve Outlook Connector error syncing folder hierarchy (0x8004102A).
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question