ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel Closing Event (https://www.excelbanter.com/excel-programming/292682-excel-closing-event.html)

Jerry[_14_]

Excel Closing Event
 
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


All times are GMT +1. The time now is 05:52 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com