VBA Rule to move Incoming Emails based on Specific Words in Senders'Addresses to Corresponding Folde

M

MikeJames

I am using MS Outlook 2003 for personal use. Under Personal Folders,
I have created sub-folders such as Shopping\Electronics\Best Buy,
Hobbies\Art\Michaels, Auto\Alamo etc. Now I know I can create 3
different rules to find specific words "Best Buy", "Michaels", "Alamo"
on the senders' addresses and assigned them to their folders. Since I
have 30+ sub-folder categories, this will be cumbersome as it means I
have to create 30+ rules for each of them, so I thought this could be
done through a script or VBA. The VBA should check an incoming email,
look words before @ on sender's address (in my example below would be
Best Buy, Michaels, Alamo etc), check if there is a sub-folder that
matches these words (Best Buy, Michaels, Alamo etc) under the Personal
Folders. If there is, move the email to that folder. Otherwise, do
nothing (leave it in the default inbox folder). Can this be done
through VBA? Please help.
 

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