A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Help Running a script in Rules Wizard to save attachments



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 30th 07, 09:38 PM posted to microsoft.public.outlook.program_vba
Murphybp2
external usenet poster
 
Posts: 26
Default Help Running a script in Rules Wizard to save attachments

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
  #2  
Old May 1st 07, 10: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.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Rule or Script for Rules Wizard Rick Outlook and VBA 0 April 13th 07 09:10 PM
Eror after running "2003 Save My Settings Wizard" Preacher Ted Outlook - Installation 2 November 7th 06 03:18 PM
Rule 'run a script' not running my script [email protected] Outlook and VBA 3 May 30th 06 12:09 PM
script the save of multiple attachments with the same name! sumGirl Outlook - General Queries 1 April 28th 06 10:03 AM
outlook does not work correctly after running xp transfer wizard Steve S Outlook Express 3 April 11th 06 03:39 PM


All times are GMT +1. The time now is 10:43 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2024 Outlook Banter.
The comments are property of their posters.