Events in Word
Part of the Office development model is the automatic detection of events. In Word, the events that are detected occur mostly at the level of the Application object, with a few that occur at the level of the Document object. If your application needs to respond to a particular event, all you need do is place the code in the corresponding event procedure. Then, it will be executed automatically when the event occurs. The fundamentals of events were covered in Chapter 4. In this section, I explain those events available in Word.
Document-Level Events
Document events are detected by individual documents. The event handlers are placed in a module associated with a specific document. If an event handler is placed in a template, then ...
Get Office® XP Development with VBA now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.