event
Automation events are a standard part of many OLE Automation APIs. Events are triggered whenever a particular action occurs (or is about to occur) in the application. For example, in Reflection the BeforeConnect event is triggered immediately before Reflection makes a connection, and the AfterConnect event is triggered immediately after a connection is made. You can use events to write macros that respond to these actions.