Just tested and that worked! Thank you for your help. So, if I wanted to tell it to save excel file item # 3 of 3 attachments for example, I would need to insert 3.......Set objAtt = itm.Attachments(3)?
Thanks again your help is much appreciated.
Diane, I tried the Item #, but could not get it to work in my below code, could you please show me where I would insert it? Thanks
Public Sub saveAttachtoDiskRuleNATIONSTARscript(itm As Outlook.MailItem)
Dim objAtt As Outlook.Attachment
Dim saveFolder As String
Dim fso As Object
Thank you Diane, appreciate your quick reply. I will try the # after Item; I thought about looking for the file type but I'm running a variation of the rule on multiple emails that come daily from different senders. Some have 2 or 3 xls or xlsx attachments, but I need to always save the first...
Hi, I'm new to VBA and also this forum. I'm using a simple script code to save email attachments to a Drive folder and name them when they arrive, and activating it within an Outlook rule(run a script), its working fine.......when there is only one attachment in the email. Is there a script...