22 November 2014
An event occurs when certain actions are performed by the user or VBA. For example when you open a workbook the Workbook_Open
event is triggered. When you (or your VBA) saves a workbook, the Workbook_BeforeSave
event is triggered.
These events are built into Excel VBA and are executed automatically by Excel. You can write your own code which is also executed when these events occur. This code is known as an Event Handler.
In this article I'm going to look at events for worksheets and workbooks, but there are also events specific to the Excel application itself, user forms, and charts.
Full article: Workbook & worksheet events in Excel VBA