ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Using VB to auto generate email - unable to get stationery (https://www.excelbanter.com/excel-programming/395533-using-vbulletin-auto-generate-email-unable-get-stationery.html)

Barnie

Using VB to auto generate email - unable to get stationery
 
I am using an Excel VB procedure to send emails. Works OK but cannot get
stationery. Although stationery is set as default in email editor and comes
up when you create new mail, when invoked by my VB procedure comes up blank.
I have tried replacing "Set objItem = objOutlook.CreateItem(olMailItem)" with
"Set objItem = objOutlook.CreateItem(olFormatHTML)" and various permutations
of "C:\Program Files\Common Files\Microsoft Shared\Stationery\<stationery
file name"... but am not having any luck.

Any ideas?

--
Barnie

Ron de Bruin

Using VB to auto generate email - unable to get stationery
 
Hi Barnie

The code you use will only work with Outlook

You can try CDO
http://www.rondebruin.nl/cdo.htm


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Barnie" wrote in message ...
I am using an Excel VB procedure to send emails. Works OK but cannot get
stationery. Although stationery is set as default in email editor and comes
up when you create new mail, when invoked by my VB procedure comes up blank.
I have tried replacing "Set objItem = objOutlook.CreateItem(olMailItem)" with
"Set objItem = objOutlook.CreateItem(olFormatHTML)" and various permutations
of "C:\Program Files\Common Files\Microsoft Shared\Stationery\<stationery
file name"... but am not having any luck.

Any ideas?

--
Barnie



All times are GMT +1. The time now is 09:44 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com