Michael Fowler
New Member
- Joined
- Jan 23, 2024
- Messages
- 28
- Office Version
- 2021
- 2016
- Platform
- Windows
Hi everyone, I need help with this. The relevant part of my VBA Code is as follows, and it's working perfectly when sending to one recipient, with the email successfully going to the email address in cell A3 ...
With OutlookMail
.To = Range("A3").Value
.cc = ""
.BCC = ""
.Subject = "Certification Compliance"
Additionally, I found this code on the web for sending to multiple recipients ...
With OutMail
.To = EmailTo
.CC = "person1@email.com;person2@email.com"
.BCC = ""
.Subject = "RMA #" & Worksheets("RMA").Range("E1")
So, I thought that one of the following two codes would logically follow, but neither is working ...
With OutlookMail
.To = Range("A3;A4;A5").Value
.cc = ""
.BCC = ""
.Subject = "Certification Compliance"
or ...
With OutlookMail
.To = Range("A3").Value;Range("A4").Value;Range("A5").Value
.cc = ""
.BCC = ""
.Subject = "Certification Compliance"
With OutlookMail
.To = Range("A3").Value
.cc = ""
.BCC = ""
.Subject = "Certification Compliance"
Additionally, I found this code on the web for sending to multiple recipients ...
With OutMail
.To = EmailTo
.CC = "person1@email.com;person2@email.com"
.BCC = ""
.Subject = "RMA #" & Worksheets("RMA").Range("E1")
So, I thought that one of the following two codes would logically follow, but neither is working ...
With OutlookMail
.To = Range("A3;A4;A5").Value
.cc = ""
.BCC = ""
.Subject = "Certification Compliance"
or ...
With OutlookMail
.To = Range("A3").Value;Range("A4").Value;Range("A5").Value
.cc = ""
.BCC = ""
.Subject = "Certification Compliance"