Article ID: 292063 - Last Review: March 3, 2006 - Revision: 4.2 How to create a custom rule using Visual Basic for Applications (VBA) in Outlook 2002This article was previously published under Q292063
For a Microsoft Outlook 2000 version of this article, see 235852
(http://support.microsoft.com/kb/235852/
)
.
SUMMARY
If the Microsoft Outlook Rules Wizard does not provide a feature that meets your mail-routing needs, you can perhaps use Outlook Visual Basic for Applications to create a custom rule. This article describes how to get started setting up a simple rule and discusses some important considerations to keep in mind when creating a rule using Visual Basic for Applications.
MORE INFORMATIONMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. The following steps create a rule that automatically forwards any mail you receive outside of regular business hours to another e-mail address, such as the e-mail address you use at home, or to someone else who works the shift after yours.
292062
(http://support.microsoft.com/kb/292062/
)
How to handle unexpected items in a collection
The following considerations should be taken into account if you are considering implementing a rules solution using Visual Basic for Applications:
REFERENCES
For more information about available resources, and for answers to commonly asked questions about Microsoft Outlook solutions, click the following article number to view the article in the Microsoft Knowledge Base:
287530
(http://support.microsoft.com/kb/287530/
)
Frequently asked questions about custom forms and Outlook solutions
| Article Translations
|
Back to the top
