XL: How to Create Application-Level Event Handlers (213566)
The information in this article applies to:
- Microsoft Excel 2000
- Microsoft Excel 2002
This article was previously published under Q213566 For a Microsoft Excel 97 version of this article, see 158244.
SUMMARY
If you want a particular event handler to run whenever a certain event is
triggered, you can write an event handler for the Application object. Event
handlers for the Application object are global, which means that as long as
Microsoft Excel is open, the event handler will run when the appropriate
event occurs, regardless of which workbook is active when the event occurs.
This article describes how to create an Application-level event handler and
provides an example.
REFERENCESFor more information about Class Modules, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type class module in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Then click to select the Module and Class
Module Commands (Insert Menu) topic.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbdtacode kbhowto kbProgramming KB213566 |
---|
|