【发布时间】:2015-05-08 09:42:33
【问题描述】:
有人可以告诉我如何在此代码中添加“抄送收件人”吗? “收件人”和代码都按预期工作。感谢您的宝贵时间。
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
【问题讨论】:
-
你试过
oMail.CC吗?