Vonsteiner
New Member
- Joined
- Apr 14, 2014
- Messages
- 45
- Office Version
- 365
- Platform
- Windows
Hello,
I have code set up to create and send a task to one recipient, but am having trouble getting to send to multiple recipients.
This works perfectly for one recipient, but not for multiple. I have tried duplicating the above code with a different name in the '.Reciepients.Add' area in the second set, but that didn't work. I have tried adding a second name to the '.Recipients.Add' code, both in the () and outside to no avail. Any help would be greatly appreciated.
Thank you
Michael
I have code set up to create and send a task to one recipient, but am having trouble getting to send to multiple recipients.
Code:
With CreateObject("Outlook.Application").CreateItem(3)
.Assign
.Subject = Cells(2, 1) & " XXX Completed"
.StartDate = Now
.DueDate = (Now + 7)
.ReminderSet = True
.ReminderTime = .DueDate - 1 + TimeValue("8:30AM")
.Body = "Please create the folder for " & Cells(2, 1) & ". Make sure to include " & _
"all the necessary folders. Thank you."
.Recipients.Add ("name@generic.com")
.Save
End With
This works perfectly for one recipient, but not for multiple. I have tried duplicating the above code with a different name in the '.Reciepients.Add' area in the second set, but that didn't work. I have tried adding a second name to the '.Recipients.Add' code, both in the () and outside to no avail. Any help would be greatly appreciated.
Thank you
Michael