I am working and excel addin and I am under the need to open a new window of the same workbook to enter data in a different worksheet. For the new window, I will need to know when the window is being closed so I can do some validations on the data entered. Is there a way to know when a Workbook window is being closed?
Thanks.
Take a look at this document:
http://support.microsoft.com/kb/213566
Create a Module and a Class Module. Code is below.
Class Module code:
Module Code:
And this handler for the workbook: