OzzieTheOwl
Technical User
Hi
I am trying to send an email to multiple recipients, the number of recipients could vary each time the macro is run.
I have created a loop to get the names, but Outlook doesn't seem to like the multiple names, can anyone help me out?
Current Code Below
Cheers
Barney
I am trying to send an email to multiple recipients, the number of recipients could vary each time the macro is run.
I have created a loop to get the names, but Outlook doesn't seem to like the multiple names, can anyone help me out?
Current Code Below
Code:
For EmailLoop = 3 To EmailEnd
If EmailLoop = 3 Then EmailName = Sheets("Contacts").Cells(EmailLoop, ProjectLoop + 1) & "@name.co.uk"
If EmailLoop > 3 Then EmailName = EmailName & ";" & Sheets("Contacts").Cells(EmailLoop, ProjectLoop + 1) & "@name.co.uk"
Next EmailLoop
'Copy To New Book
Sheets(ProjectName).Copy
ActiveWorkbook.SendMail Recipients:=EmailName, Subject:="PAT Testing Report"
Cheers
Barney