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

Default Signature added by macro



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 16th 08, 02:59 PM posted to microsoft.public.outlook.program_vba
DStrong
external usenet poster
 
Posts: 18
Default Default Signature added by macro

OK, the scoop on my systems I am using, all machines are running XP Pro with
Office 2003 and exchange server(not sure of what version).

What I am doing is making a standard email that is sent by multiple people
asking for status updates and various other things. I am creating the body of
the email in my code and this overwrites the users signature. Since we have
multiple users it is impractical to insert their signature in my code. I
might as well write the emails for everyone. So what I would like is for the
code to insert the default signature at the end of the body. Here is my code
so far:

Sub LEG_Rcving()
Dim dcn, vname, invpo
Dim objMail As Outlook.MailItem
dcn = InputBox("Enter DCN")
vname = InputBox("Enter the Vendor's Name")
invpo = InputBox("Enter the Invoice/PO #")
'ask user for data
'dcn = InputBox("Enter DCN")
'Create e-mail item
Set objMail = Application.CreateItem(olMailItem)
With objMail
'Set body format to HTML
.ReplyRecipients.Add "
.BodyFormat = olFormatHTML
.Subject = "DCN# " & dcn & " " & vname & " #" & invpo & ""
.HTMLBody = _
"HTMLBODYfont face='arial'Please advise on the receiving status of
this invoice.brbrbr/font/BODY/HTML"
.Display
End With

End Sub

I am pretty sure that this can be done, but I just cannot figure it out to
save me.
Thanks in advance for any advice.
  #2  
Old October 18th 08, 04:34 PM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Default Signature added by macro


After creating the e-mail, call its GetInspector method, which will insert
the signature. Then place your text at the beginning of the body like this:

sig=htmlbody
htmlbody = yourtext & sig

--
Best regards
Michael Bauer - MVP Outlook

: VBOffice Reporter for Data Analysis & Reporting
: Outlook Categories? Category Manager Is Your Tool
: http://www.vboffice.net/product.html?pub=6&lang=en



Am Thu, 16 Oct 2008 06:59:01 -0700 schrieb DStrong:

OK, the scoop on my systems I am using, all machines are running XP Pro

with
Office 2003 and exchange server(not sure of what version).

What I am doing is making a standard email that is sent by multiple people
asking for status updates and various other things. I am creating the body

of
the email in my code and this overwrites the users signature. Since we

have
multiple users it is impractical to insert their signature in my code. I
might as well write the emails for everyone. So what I would like is for

the
code to insert the default signature at the end of the body. Here is my

code
so far:

Sub LEG_Rcving()
Dim dcn, vname, invpo
Dim objMail As Outlook.MailItem
dcn = InputBox("Enter DCN")
vname = InputBox("Enter the Vendor's Name")
invpo = InputBox("Enter the Invoice/PO #")
'ask user for data
'dcn = InputBox("Enter DCN")
'Create e-mail item
Set objMail = Application.CreateItem(olMailItem)
With objMail
'Set body format to HTML
.ReplyRecipients.Add "
.BodyFormat = olFormatHTML
.Subject = "DCN# " & dcn & " " & vname & " #" & invpo & ""
.HTMLBody = _
"HTMLBODYfont face='arial'Please advise on the receiving status of
this invoice.brbrbr/font/BODY/HTML"
.Display
End With

End Sub

I am pretty sure that this can be done, but I just cannot figure it out to
save me.
Thanks in advance for any advice.

 




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
Create macro to insert signature into email... Fuel451 Outlook and VBA 8 December 31st 09 02:26 PM
outlook signature added to automated messaging? Kyle G Outlook and VBA 2 November 19th 08 06:48 PM
Outlook 2003 macro signature help please John Kaess Outlook and VBA 4 January 2nd 08 10:55 PM
Can't see picture added to signature in new mail CorrinHaupt Outlook Express 3 October 11th 06 09:32 PM
Image added in Signature shows as attachment Sivakumar Outlook - Using Forms 0 October 4th 06 06:40 AM


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