Can someone help me figure out how to add my standard signature to an email I create and send using VBA. I can get everything I want but that piece. Thanks.
Sub testemail() If MsgBox(“Send Email?”, vbYesNo + vbQuestion, “Email”) = vbYes Then ‘send email Dim myOutlok As Object Dim myMailItm As Object Dim signature As String Shell (“OUTLOOK”) Set otlApp = CreateObject(“Outlook.Application”) Set OtlNewMail = otlApp.CreateItem(olMailItem) signature = OtlNewMail.HTMLBody OtlNewMail.HTMLBody = signature With OtlNewMail .To = Range(“H9”).Value .CC = Range(“H10”).Value .Subject = Range(“H11”).Value .HTMLBody = “Hello,” & “
” & Range(“H12”).Value & “
” & “
” & “
” & “Thank you,” & “
” & “
” & signature ‘.Attachments.Add “U:CRAIGActual” & Range(“H6”).Value & “” & Range(“H8”).Value & “” & Range(“H13”).Value & “.xls” .Send End With Set OtlNewMail = Nothing Set otlApp = Nothing Set otlAttach = Nothing Set otlMess = Nothing Set otlNSpace = Nothing Else Exit Sub End If End Sub