Code Document Level Events in Environments Other Than VBA
 
 
 

Once the document level events have been enabled, you will find the Doc class variable available from the Object drop-down list of the Class Module Code window. Select the Doc class and the list of available events will appear in the Procedure drop-down list. Simply select the event you want to write a handler for and the handler skeleton is created automatically.