I have programmed a VBA to email a form to a specific email group, and included a CC based on a check box. I am trying to add additional emails to that CC box based on other check boxes in my form. Stumped on how to do this.
Set objOutlook = CreateObject("Outlook.application")
Set objEmail = objOutlook.CreateItem(olMailItem)
With objEmail
.SentOnBehalfOfName = "Mailbox sent from"
.Importance = olImportanceHigh
.To = "@Outlook Email Group"
If Me.Check96 = True Then
.CC = "multiple email addresses"
ElseIf Me.MAA = True Then
.CC = Me.Check96 And "optional email addresses to be added to the CC group based on another check box"
End If
What am I doing wrong????
Dave