VB and Outlook Stationary

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?
staritsjAsked:
Who is Participating?
 
David LeeConnect With a Mentor Commented:
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
All Courses

From novice to tech pro — start learning today.