I am trying to modify my macro for Reply All With Attachments to add also in CC my bosses e-mail because I have to do it often.
I was trying to incorporate it from here or here but I am no Pro and receive the 424 error :(
Set objRecip = objMail.Recipients.Add("theboss@thecompany.com")
oRecip.Type = olCC
could you please help modify the current macro to add an email address to CC?
my current macro
Sub ReplyWithAttachments()
Dim oReply As Outlook.MailItem
Dim oItem As Object
Set oItem = GetCurrentItem()
If Not oItem Is Nothing Then
Set oReply = oItem.Reply
CopyAttachments oItem, oReply
oReply.Display
oItem.UnRead = False
End If
Set oReply = Nothing
Set oItem = Nothing
End Sub
Sub ReplyAllWithAttachments()
Dim oReply As Outlook.MailItem
Dim oItem As Object
Set oItem = GetCurrentItem()
If Not oItem Is Nothing Then
Set oReply = oItem.ReplyAll
CopyAttachments oItem, oReply
oReply.Display
oItem.UnRead = False
End If
Set oReply = Nothing
Set oItem = Nothing
End Sub
Function GetCurrentItem()
...
End Function
Sub CopyAttachments
...
End Sub