将"CC收件人"添加到Outlook 2010 VBA

nfn*_*fnf 5 outlook outlook-vba

有人可以告诉我如何在此代码中添加"抄送收件人"吗?"收件人"和代码都按预期工作.感谢您的时间.

Sub ForwardEmail(item As Outlook.MailItem)
' Dim oExplorer As Outlook.Explorer
Dim oMail As MailItem
' Set oExplorer = Application.ActiveExplorer

On Error GoTo Release

' If oExplorer.Selection.item(1).Class = olMail Then

Set oMail = item.Forward
oMail.Subject = oMail.Subject
oMail.HTMLBody = "Have a nice day." & vbCrLf & oMail.HTMLBody
oMail.Recipients.Add "email address here"

' oMail.Save
oMail.Send

' End If

Release:
Set oMail = Nothing
' Set oExplorer = Nothing
End Sub
Run Code Online (Sandbox Code Playgroud)

Dmi*_*nko 8

set oRecip = oMail.Recipients.Add("email address here")
oRecip.Type = olCC
Run Code Online (Sandbox Code Playgroud)

要么

oMail.CC = "email address here"
Run Code Online (Sandbox Code Playgroud)