Hi. I'm trying to automatically send an email with multiple attachments, but the email only contains the first attachment. Any idea what I'm doing wrong?
Sub EOD_No_Issues()
Application.ScreenUpdating = False
Dim MyOutlook As Object
Set MyOutlook = CreateObject("Outlook.Application")
Dim MyMail As Object
Set MyMail = MyOutlook.CreateItem(olMailItem)
MyMail.To = “email”
MyMail.CC = “”
MyMail.Subject = Range("E2").Value
MyMail.Body = "Test"
Attached_File = Range("E3").Value
Attached_File = Range("E4").Value
Attached_File = Range("E5").Value
Attached_File = Range("E6").Value
Attached_File = Range("E7").Value
MyMail.Send
Application.ScreenUpdating = True
End Sub
Sub EOD_No_Issues()
Application.ScreenUpdating = False
Dim MyOutlook As Object
Set MyOutlook = CreateObject("Outlook.Application")
Dim MyMail As Object
Set MyMail = MyOutlook.CreateItem(olMailItem)
MyMail.To = “email”
MyMail.CC = “”
MyMail.Subject = Range("E2").Value
MyMail.Body = "Test"
Attached_File = Range("E3").Value
Attached_File = Range("E4").Value
Attached_File = Range("E5").Value
Attached_File = Range("E6").Value
Attached_File = Range("E7").Value
MyMail.Send
Application.ScreenUpdating = True
End Sub