【发布时间】:2021-10-03 14:51:37
【问题描述】:
我想在打开的电子邮件中添加附件。
Sub AddAttachment()
Dim myItem As Outlook.MailItem
Dim myAttachments As Outlook.Attachments
'Set myItem = Application.CreateItem(olMailItem) 'this will create a new Email which I don't want
Set myItem= thisEmail **I need help with this part**
Set myAttachments = myItem.Attachments
myAttachments.Add "D:\Documents\Q496.xlsx", olByValue, 1, "4th Quarter 1996 Results Chart"
myItem.Display
End Sub
【问题讨论】:
标签: vba outlook attachment