I'm fairly new to VBA and I'm having trouble writing a macro that creates an email with my signature already attached. Can someone let me know what exactly is wrong with my code and how I can fix it?
Sub SendFIleAsAttachment()
Dim OLApp As Outlook.Application
Dim OLMail As Object
signature As String
Set OLApp = New Outlook.Application
Set OLMail = OLApp.CreateItem(0)
OLApp.Session.Logon
With OLMail
.Display
End With
signature = OMail.Body
With OMail
.To = "email"
.CC = "email"
.BCC = ""
.Subject = "New Copy Proofing Request"
.Body = "body text. Thanks!" & vbNewLine & signature
.Attachments.Add ActiveWorkbook.FullName
End With
Set OLMail = Nothing
Set OLApp = Nothing
End Sub