I have form that has a button that sends an email to those completing the form. The relevant section looks like this:
With OutMail
.To = "James.jones@urcca.edu"
.CC = ""
.BCC = ""
.Subject = "Successful Submission: " & Sheet1.Range("j10")
.Body = strbody
.Attachments.Add ActiveWorkbook.FullName
'You can add a file like this
'.Attachments.Add ("C:\test.txt")
.Send 'or use .Display
End With
How do I add cell references that contain an email address to the CC line? I've tried a number of things and nothing seems to work. Any ideas? Thanks.
With OutMail
.To = "James.jones@urcca.edu"
.CC = ""
.BCC = ""
.Subject = "Successful Submission: " & Sheet1.Range("j10")
.Body = strbody
.Attachments.Add ActiveWorkbook.FullName
'You can add a file like this
'.Attachments.Add ("C:\test.txt")
.Send 'or use .Display
End With
How do I add cell references that contain an email address to the CC line? I've tried a number of things and nothing seems to work. Any ideas? Thanks.