我一直在尝试找出如何在MS Outlook 2016中执行以下操作
我使用下面的宏,现在它依赖于取消与日历通知相关的通知以发送电子邮件(无论通知设置为无)。
有人做过类似的事情/提供建议吗?
Private Sub Application_Reminder(ByVal Item As Object)
Dim MItem As MailItem
Set MItem = Application.CreateItem(olMailItem)
If Item.MessageClass <> "IPM.Appointment" Then Exit Sub
If Item.Categories <> "Send_att_recurring_email" Then Exit Sub
MItem.To = "user@gmail.com"
MItem.CC = "otherUser@gmail.com"
MItem.Subject = Item.Subject
MItem.Body = Item.Body
With MItem
.Attachments.Add "<C:\Desktop\Documents\Agenda.docx>"
.Display
End With