我从Outlook中保存附件时遇到问题-我将此宏与Outlook规则一起使用,并将其分发给我的同事。宏突然停止工作,但是宏或Outlook设置中没有任何变化。卡巴斯基可能会阻止将附件保存到磁盘吗?
Public Sub saveAttachmentsToDisk(MItem As Outlook.MailItem)
Dim oAttachment As Outlook.Attachment
Dim sSaveFolder As String
sSaveFolder = "C:\D\"
For Each oAttachment In MItem.Attachments
oAttachment.SaveAsFile sSaveFolder & oAttachment.DisplayName
Next
End Sub
谢谢。