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

Insert Signature



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 25th 07, 09:53 PM posted to microsoft.public.outlook.program_vba
J
external usenet poster
 
Posts: 42
Default Insert Signature

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  
Old June 26th 07, 06:55 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Insert Signature



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  
Old July 2nd 07, 04:32 PM posted to microsoft.public.outlook.program_vba
J
external usenet poster
 
Posts: 42
Default Insert Signature

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  
Old July 4th 07, 06:59 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Insert Signature



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
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
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


All times are GMT +1. The time now is 11:21 AM.


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.