Save files from emails in a Personal Folder automatically to a local C drive folder

Hi Experts!

I'm wondering if there is a script that can do this automatically. I would appreciate your help very very much, it would save a lot of manual work on copying and saving files.

I am getting emails containing data for a project into a special folder in Outlook Personal Folders, called Data. Is there a way to save the Excel attachement from each of these emails into C:\Data? I only need the Excel file, not the text of the email or any other attachements.

Any idea if this is possible?

Thank you very much!
Andreea
amoyesAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sunray_2003Commented:
Are you familiar with vba and if yes , check this
http://www.freevbcode.com/ShowCode.Asp?ID=1154

SR
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
amoyesAuthor Commented:
Hi Sunray!

This code looks like what I need. Where do I put it though and how do I run it? Is it automatic or do I have to run it?

Thanks!
Andreea
0
sunray_2003Commented:
I am really not that much familiar how to run code. i think you can do this
open outlook
press Alt + F11 to open macro editor
create a new project and paste this code there and run it

let me know if you cannot continue from there
0
amoyesAuthor Commented:
HI Sunray,

I pasted the code in a module. When I try to run, there is no macro name in the list. I should have a sub to run and I don't know what that should be like. Can you help with step by step instructions on where to change the folder path, the Outlook library and how to run the code? I don't know what the declarations are to be used for either.

I am somewhat confused, I would appreciate more help.

Thanks!
Andreea
0
amoyesAuthor Commented:
Hi Sunray,

Thanks for your solution. I apologize it took me so long to respond. It took a lot of testing to implement this solution.

regards,
Andreea
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Outlook

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.