Chapter 27

Working with Events in Outlook

If you want to automate the way that Outlook works, you may need to write code that responds to Outlook events. Outlook has two classes of events, application-level events and item-level events, which between them enable you to write code that responds to most occurrences in Outlook. In this chapter, you will learn how to work with both types of events, and you will see examples of some of the events.

HOW EVENT HANDLER PROCEDURES DIFFER FROM ORDINARY MACROS
Both the construction of an event handler procedure and its testing differ somewhat from the techniques you’ve been employing throughout this book when creating and testing ordinary macro procedures. To summarize: an event handler must be located ...

Get Mastering VBA for Microsoft Office 2007, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.