Chapter 27Working with Events in Outlook

If you want to write macros to automate tasks in Outlook, you may sometimes need to write code that responds to Outlook events. Outlook has two classes of events, application-level events and item-level events, and between them, they enable your macros to respond to most anything that happens in Outlook. In this chapter, you will learn how to work with both types of events, and you will see code examples showing how to manage some of the events.

In addition to the events discussed in this chapter, Outlook supports form events such as those discussed in “Using Events to Control Forms” in Chapter 15, “Creating Complex Forms.” However, as is so often the case with Outlook and Access, the folders in Outlook ...

Get Mastering VBA for Microsoft Office 365, 2019th 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.