答案1
xlDialogueSendMail 不支持抄送地址。您可能需要切换到 Outlook 库或任何支持您的电子邮件客户端的库。
VBA 用于快速而简单的 Outlook 电子邮件:
Sub sendOutlookEmail()
Dim outlook As Object
Dim outlookMail As Object
Set outlook = CreateObject("Outlook.Application")
Set outlookMail = outlook.CreateItem(0)
With outlookMail
.To = "[email protected]"
.CC = "[email protected]"
.BCC = "[email protected]"
.Subject = "A Subject"
.Body = "A body"
.Attachments.Add ThisWorkbook.FullName
.Display
End With
End Sub