View Single Post
  #3  
Old September 18th 06, 06:01 AM posted to microsoft.public.outlook.program_vba
John
external usenet poster
 
Posts: 135
Default No email stationery when through code

Thanks. I am now using;

objOutlookMsg.Display
objOutlookMsg.BodyFormat = olFormatHTML
objOutlookMsg.Body = "Dear abc..." & objOutlookMsg.Body

The email displays fine with the signature but as soon as the text is added,
the signature formatting is lost and the signature image is replaced with a
hyperlink. How can I preserve the signature formatting while adding text
before it?

Thanks

Regards


"Michael Bauer [MVP - Outlook]" wrote in message
...
Am Sun, 17 Sep 2006 21:11:45 +0100 schrieb John:

Call Display first, then insert your text before the existing the body
(instead of overwriting it).

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --


Hi

I am creating email via code from access using below;

Dim objOutlook As Outlook.Application
Dim objOutlookMsg As Outlook.MailItem

Set objOutlook = CreateObject("Outlook.Application")
Set objOutlookMsg = objOutlook.CreateItem(olMailItem)
objOutlookMsg.To = "
objOutlookMsg.Subject = "Email Subject"
objOutlookMsg.Body = "Dear abc..."
objOutlookMsg.Display

The problem is that the default signature that is set in outlook doe snot
come up in the email. How can I fix it?

Thanks

Regards



Ads
 

Magazine Subscription - Credit Cards UK - Credit Cards - Online Advertising - Loans