Hi,
I receive daily an email with 3 attached files, one of them having the ext .TXT.
The following code saves in a folder the 3 received attachments using a Rule.
I’d like to modify the code to store only the .TXT file.
How do I go by?
TIA
EDIT: Outlook 2007
Public Sub saveAttach(itm As Outlook.MailItem) Dim objAtt As Outlook.Attachment Dim saveFolder As String saveFolder = "c:\myAttFiles\" For Each objAtt In itm.Attachments objAtt.SaveAsFile saveFolder & "\" & objAtt.DisplayName Set objAtt = Nothing Next End Sub