我每天早上8点收到一封附有.xlsx
附件的电子邮件。我需要outlook 2010
将此附件保存到桌面上的文件夹中。我怎么能这样做?
答案 0 :(得分:0)
点击Alt + F11
- >打开一个新模块 - >
Public Sub saveAttachtoDisk (myItem As Outlook.MailItem)
Dim myAttachment As Outlook.Attachment
Dim saveFolder As String
'change xxx to your folder's name
saveFolder = “c:xxx”
For Each myAttachment In myItem.Attachments
myAttachment.SaveAsFile saveFolder & “\” & myAttachment.DisplayName
Set myAttachment = Nothing
Next
End Sub
然后创建一个新规则以将此脚本应用于您的接收者