Create Custom Rules with VBA in Outlook 2002
Microsoft has a short (maybe too short) knowledge base article detailing the process:
By Heinz Tschabitscher, About.com Guide
Microsoft has a short (maybe too short) knowledge base article detailing the process: