7. Event Programming

Levels of Events

Earlier in the book, you read about workbook events and you have seen examples of worksheet events. Events allow you to automatically trigger a program to run based on something a user or another program does in Excel. For example, if a user changes the contents of a cell, after pressing Enter or Tab, the code would run automatically. The event that triggered it is the changing of the contents of the cell.

You can find these events at the following levels:

Application level—Control based on application actions such as Application_NewWorkbook

Workbook level—Control based ...

Get Excel® 2013 VBA and Macros now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.