View Single Post
  #2  
Old May 1st 07, 11:04 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Help Running a script in Rules Wizard to save attachments

See:

How to create a script for the Rules Wizard in Outlook:
http://support.microsoft.com/default...n-us%3bq306108

Then use the MailItem.Attachments(1).SaveAsFile method to save it to your
file system (change the index number as appropriate, or loop through the
Attachments collection to get the one you want).

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Murphybp2" wrote:

I received a daily system report with an attached PDF of the data. I
currently have a rule that automatically moves the message when I get
it to a folder. I'd like to instead create a rule that will save the
attached PDF to a file on my computer, then delete the message. I
figured I could use the option to run a script in the rules wizard,
except I don't know what script to create to do this. I've seen some
different VBA's on working with attachments, but none seem to apply to
my issue. Any help would be appreciated.


Ads