Outlook VBA automation (saving attachments)

Asator

Board Regular
Joined
Apr 5, 2010
Messages
186
I know this is the excel forum, but you guys don't have a forum for Outlook, soooooo.......

Working on automating saving/printing of invoices for one of our AP reps (roughly 700 miles away, so support won't be simple).

Ive got the code that saves and prints the attachments for the selected messages to a specified location. She'd like it to automatically sort the saved file to a folder matching the vendor's @domain.com email. I'm trying to think of the best way to accomplish that, since obviously I can't use an excel lookup table. Should I just build a two-dimensional array (to match the @domain.com with the folder) and have her contact me if she needs to add new vendors? Or is there a better way, such that she can add or change entries?
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Forum statistics

Threads
1,224,609
Messages
6,179,875
Members
452,949
Latest member
Dupuhini

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top