events and event handlers

As documents move through the system, events are fired at predefined occasions. An event is a condition or the result of an activity at a specific point in a program.

When an event is fired, the system checks to see whether you have defined a handler for the event (part of Customizing DOCUMENTS using the API). An event handler causes execution of a predefined VBA function, DLL function, or both.