I'm currently building a
VB app that creates an instance of Excel. When Excel is closed by the user (not via the app) I'd like to clean up some stuff in Excel, like removing toolbars and button-overrides, so that when Excel is started without the app it looks normal again
But so far I have found nothing in Excel that gives a reliable indication when it is being closed. The BeforeClose event is useless because it can be canceled by user action. And unfortunately it is not called in xla's where it would help. I also tried using a class inside an xla that stays 'in the air' all the time. Unfortunately it's terminate event is not being called when Excel shuts down, comparable to the 'End' button in
VB
Can anyone help me solve this problem
TIA, Jerry