Hello,
I want the below code to send multiple emails with different subjects, different receivers and attachments.
Any idea how I can do this?
------------------------------------
Sub Multimail()
Set Mail_Object = CreateObject("Outlook.Application")
With Mail_Object.CreateItem(o)
.Subject = Range("A1")
.To = Range("B1")
.Body = "This is a test"
.Attachments.Add "C:\Users\EG\Documents\" & Range("C1").Value & ".pdf"
.Send
End With
End Sub
I want the below code to send multiple emails with different subjects, different receivers and attachments.
Any idea how I can do this?
------------------------------------
Sub Multimail()
Set Mail_Object = CreateObject("Outlook.Application")
With Mail_Object.CreateItem(o)
.Subject = Range("A1")
.To = Range("B1")
.Body = "This is a test"
.Attachments.Add "C:\Users\EG\Documents\" & Range("C1").Value & ".pdf"
.Send
End With
End Sub