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.
Thank you for the suggestion, however it didn't seem to do anything different. It still didn't stop after the first attachment and ended up saving the 3rd attachment out of 3.
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
Dim file...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.