save certain emails from inbox to network drive with a macro

H

Herb Segal

Is there a way to create a macro that, when run, will save an email from my
inbox to a folder on our network? I also thought a macro would not only save
to a network folder but also delete from my inbox. Not every email in my
inbox but only the ones I want to save.

I use drag and drop now but thought the macro might make it a little easier.
When I'm in MS outlook I can't always see my desktop so drag and drop if
difficult. I'm constantly closing or minimizing programs so I can see the
folder I want to drag to.

I gather there is no record function in ms outlook like you find in excel.
 
K

Ken Slovak - [MVP - Outlook]

Outlook has no macro recorder. You write macros in Outlook using VBA code
that you have to write from scratch.

You can select items in a folder, get the Selection collection for that
window (Explorer) and iterate the Selection. For each selected MailItem you
can use the SaveAs() method to save the items and then delete the item using
a count down loop.

You might want to search for code similar to what you want to get you
started at www.outlookcode.com
 
H

Herb Segal

Thank you very much.

Ken Slovak - said:
Outlook has no macro recorder. You write macros in Outlook using VBA code
that you have to write from scratch.

You can select items in a folder, get the Selection collection for that
window (Explorer) and iterate the Selection. For each selected MailItem
you can use the SaveAs() method to save the items and then delete the item
using a count down loop.

You might want to search for code similar to what you want to get you
started at www.outlookcode.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top