For some reason this macro will send the workbook to Persons_Email_Addr
but not to Copy_To_Slay. What am I doing wrong?
Sub Email()
Dim Email_WB As Workbook
Dim Persons_Email_Addr As String
Dim Copy_To_Slay As String
Dim Email_Subj As String
On Error GoTo Email_Err
Set Email_WB = ActiveWorkbook
Persons_Email_Addr = "abc@abc.org"
Copy_To_Slay = "slay@abc.org"
Email_Subj = "New Travel Request"
Email_WB.SendMail Recipients:=Persons_Email_Addr, _
Subject:=Email_Subj
Email_Err:
End Sub
but not to Copy_To_Slay. What am I doing wrong?
Sub Email()
Dim Email_WB As Workbook
Dim Persons_Email_Addr As String
Dim Copy_To_Slay As String
Dim Email_Subj As String
On Error GoTo Email_Err
Set Email_WB = ActiveWorkbook
Persons_Email_Addr = "abc@abc.org"
Copy_To_Slay = "slay@abc.org"
Email_Subj = "New Travel Request"
Email_WB.SendMail Recipients:=Persons_Email_Addr, _
Subject:=Email_Subj
Email_Err:
End Sub