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

Problem with signature when creating new email



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 21st 06, 02:49 PM posted to microsoft.public.outlook,microsoft.public.outlook.general,microsoft.public.outlook.interop,microsoft.public.outlook.program_vba
John
external usenet poster
 
Posts: 135
Default Problem with signature when creating new email

Hi

I am creating email via code from access using below;

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

The email displays fine along with the signature set in outlook 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


  #2  
Old September 21st 06, 06:57 PM posted to microsoft.public.outlook,microsoft.public.outlook.general,microsoft.public.outlook.interop,microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Problem with signature when creating new email

Set the HTMLBody property instead of Body.
Keep in mind that HTML strings (unlike plain text) cannot be simply
concatenated.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"John" wrote in message
...
Hi

I am creating email via code from access using below;

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

The email displays fine along with the signature set in outlook 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




 




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
Problem with signature when creating new email John Outlook - General Queries 1 September 21st 06 06:57 PM
problems creating proper formatting in signature sat Outlook - General Queries 5 July 31st 06 03:55 AM
Word Signature File Causing ActiveX Error When Creating New Messag stevenh Outlook - Installation 0 March 29th 06 02:53 PM
Having trouble creating a signature that includes a logo Nicole Outlook - Installation 0 March 7th 06 06:11 PM
Signature with Image Problem [email protected] Outlook - General Queries 0 February 9th 06 05:28 PM


All times are GMT +1. The time now is 12:56 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.