![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
When I append to the body, it reformats my signature. How can I keep the
format of my signature and still append new text to the body?? Thanks! |
#2
|
|||
|
|||
![]() Use the HTMLBody property instead of Body. -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook Organize eMails: http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6 Am Mon, 25 Jun 2007 12:53:02 -0700 schrieb J: When I append to the body, it reformats my signature. How can I keep the format of my signature and still append new text to the body?? Thanks! |
#3
|
|||
|
|||
![]()
Hi Michael -
Here's my code. I'm running this from within Access. With the below code, it doesn't add "Test reminder" to the message, but the signature stays. Dim objOutlook As Outlook.Application Dim objMail As Outlook.MailItem Dim objOutlookRecip As Outlook.Recipient Set db = CurrentDb() Set objOutlook = New Outlook.Application Set objMail = objOutlook.CreateItem(olMailItem) With objMail ' Add the To recipient(s) to the message. Set objOutlookRecip = ") objOutlookRecip.Type = olTo .Display .Subject = "Weekly Email" .HTMLBody = "Test reminder." & vbCrLf & vbCrLf & .HTMLBody End With Also, how do I actually send the message after I get the formatting fixed?? Thanks, J "Michael Bauer [MVP - Outlook]" wrote: Use the HTMLBody property instead of Body. -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook Organize eMails: http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6 Am Mon, 25 Jun 2007 12:53:02 -0700 schrieb J: When I append to the body, it reformats my signature. How can I keep the format of my signature and still append new text to the body?? Thanks! |
#4
|
|||
|
|||
![]() You should try the HTML format, whcih e.g. doesn't know a vbCRLF but uses p/p or br tags. To send the message simply call its Send method. As you do this from within Access it'll cause the security diaog to pop up. To avoid that you might use the Redemption (www.dimastr.com) - or send from within Outlook itself. -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook Organize eMails: http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6 Am Mon, 2 Jul 2007 07:32:02 -0700 schrieb J: Hi Michael - Here's my code. I'm running this from within Access. With the below code, it doesn't add "Test reminder" to the message, but the signature stays. Dim objOutlook As Outlook.Application Dim objMail As Outlook.MailItem Dim objOutlookRecip As Outlook.Recipient Set db = CurrentDb() Set objOutlook = New Outlook.Application Set objMail = objOutlook.CreateItem(olMailItem) With objMail ' Add the To recipient(s) to the message. Set objOutlookRecip = ") objOutlookRecip.Type = olTo .Display .Subject = "Weekly Email" .HTMLBody = "Test reminder." & vbCrLf & vbCrLf & .HTMLBody End With Also, how do I actually send the message after I get the formatting fixed?? Thanks, J "Michael Bauer [MVP - Outlook]" wrote: Use the HTMLBody property instead of Body. -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook Organize eMails: http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6 Am Mon, 25 Jun 2007 12:53:02 -0700 schrieb J: When I append to the body, it reformats my signature. How can I keep the format of my signature and still append new text to the body?? Thanks! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
VBA code to insert signature | LDMueller | Outlook and VBA | 1 | January 18th 07 10:18 PM |
Signature Button and Insert Signature Missing | Bill Glidden | Outlook - General Queries | 2 | December 19th 06 09:42 AM |
Signature will not Insert | [email protected] | Outlook - General Queries | 4 | August 12th 06 02:52 AM |
Insert a text signature programatically | Dale | Outlook and VBA | 1 | July 26th 06 12:19 AM |
how do I insert my signature into e-mails from outlook. | cullen | Outlook - Using Contacts | 1 | April 27th 06 04:18 AM |