我在互联网上找到了这段代码,您可以在其中自动将附件保存在某个文件夹中:
Public Sub saveAttachtoDisk(itm As Outlook.MailItem)
Dim objAtt As Outlook.Attachment
Dim saveFolder As String
saveFolder = "C:\Temp"
For Each objAtt In itm.Attachments
objAtt.SaveAsFile saveFolder & "\" & objAtt.DisplayName
Set objAtt = Nothing
Next
End Sub
有什么办法可以将附件保存在不同的文件夹中?
谢谢