To be able to trap application events across all open workbooks in MS Excel via an add-in follow these steps.
Public WithEvents xlApp as Application
Then you will be able to write code within any of the application events.Sub TrapApplicationEvents() set globalvar = new classApp set globalvar.xlApp = Application End Sub