Using VBA to Respond to Application-Level Events
Now that you know some of the basics about manipulating objects in VBA, you can use VBA to respond to various application-level events in Outlook. There are 10 application-level events you can use in Outlook 2003:
AdvancedSearchComplete— Triggered when an Advanced Find completes
AdvancedSearchStopped— Triggered when an Advanced Find is stopped by the user
ItemSend— Occurs when an item is sent
MAPILogonComplete— Occurs when a user has logged on to Outlook
NewMail— Occurs when a new email is received
NewMailEx— Occurs when a new email is received through the Exchange Server
OptionsPagesAdd— Occurs when a new page is added to the Options dialog box
Quit— Triggered when the Outlook application terminates ...