Before a procedure related to the event of an object is executed, you must connect the declared object in the class module with the Application object.
Dim X As New EventClassModule
Sub InitializeEvents() Set X.App = ThisDrawing.Application End Sub
Call InitializeEvents
Once the InitializeEvents procedure has been run, the App object in the class module points to the Application object specified, and any event procedures in the class module will run when the events occur.