In order to trap events of the worksheet that was dynamically generated, I define one class module and one code module like the following:
Class Module:
Public WithEvents xlapp as Application
Public Sub xlapp_SheetPivotTableUpdate(ByVal Wb As Workbook)
MsgBox " Testing Trap Events! "
End...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.