Tuesday, January 19, 2010

Run All Rules In Outlook 2007

I like rules in Outlook. I like to sort and move messages to their proper folders. I like how rules can be set to automatically move these messages to their proper folder.
What I do not like though is that I can miss a message because that message was moved to a folder and I did not see it come in. Even with desktop alerts and window alerts, I can still miss them as they come in.
I found some code that allow the user to manually run all the rules, that were created, in the inbox. I create all the rules I need and uncheck all of them to prevent them from running automatically.
As each email comes in, it stays in the inbox. To me, that helps me ensure that I see those emails come in. When my inbox has accumulated enough emails, I run the code to run the rules which place those emails in their proper folder. My inbox is cleared and is ready to receive more emails.
The URL for the code can be found at this URL, http://www.outlookcode.com/codedetail.aspx?id=1266





Open Outlook 2007 and press ALT-F11 to go to the Visual Basic editor. Insert a new Module and paste the code. Save the module.

Return to Outlook and right-click the standard toolbar and select Customize.
Under the Commands tab, select Macros under Categories. Select and drag Project1.RunAllInboxRules to the toolbar. Select Close and the macro is ready to run.
I put mine in a menubar and relabeled it.
I just select this to run all the rules. You will see a message like this.

Hope this works for you. Enjoy!