May 2019
Intermediate to advanced
784 pages
18h 27m
English
In many of the example macros in this book, there will be code implemented as event procedures, which are procedures that automatically trigger upon the occurrence of an event. An event is nothing more than an action that takes place during a session in Excel.
Everything that happens in Excel happens to an object through an event. A few examples of events are opening a workbook, adding a worksheet, changing a value in a cell, saving a workbook, double-clicking a cell, and the list goes on. The nifty thing is that you can tell Excel to run a certain macro or piece of code when a particular event occurs.
Excel is programmed to monitor many different events. These events can be classified as follows:
Open (the workbook is opened or created), BeforeSave (the workbook is about to be saved), and NewSheet (a new sheet is added).Change (a cell on the sheet is changed), SelectionChange (the user moves the cell indicator), and ...Read now
Unlock full access