jerry12302
Active Member
- Joined
- Apr 18, 2005
- Messages
- 442
- Office Version
- 2010
- Platform
- Windows
I have VBA code to send emails, but they do not include the default signature which contains my company logo.
...
EMTo = Application.WorksheetFunction.Index(Range("CompData"), Counter, 3)
EMSubject = Range("EMSubject").Value
EMBody = "Test email, to include signature" & vbLf & vbLf
With outMail
.To = EMTo
.Subject = EMSubject
.Body = EMBody 'need to modify to include signature
.Send
End With
...
I have seen other posts about this, but I know the path and file name of the default signature, it doesn't have to be searched for, and shouldn't have to be converted. It's an htm file with the text and the logo:
C:\Users\Jerry\AppData\Roaming\Microsoft\Signatures\Jerry.htm
Is there a simple way to modify the email body to add this signature file?
...
EMTo = Application.WorksheetFunction.Index(Range("CompData"), Counter, 3)
EMSubject = Range("EMSubject").Value
EMBody = "Test email, to include signature" & vbLf & vbLf
With outMail
.To = EMTo
.Subject = EMSubject
.Body = EMBody 'need to modify to include signature
.Send
End With
...
I have seen other posts about this, but I know the path and file name of the default signature, it doesn't have to be searched for, and shouldn't have to be converted. It's an htm file with the text and the logo:
C:\Users\Jerry\AppData\Roaming\Microsoft\Signatures\Jerry.htm
Is there a simple way to modify the email body to add this signature file?