Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default 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
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Closing workbooks w/o closing Excel Barb in MD Excel Discussion (Misc queries) 3 February 15th 10 06:42 PM
Event on opening/closing groupings in VBA Dirk Flakowski Excel Discussion (Misc queries) 3 November 29th 05 03:52 PM
closing excel after closing a workbook CWalsh[_2_] Excel Programming 3 January 21st 04 03:33 PM
change event/after update event?? scrabtree23[_2_] Excel Programming 1 October 20th 03 07:09 PM
OnTime event not firing in Workbook_Open event procedure GingerTommy Excel Programming 0 September 24th 03 03:18 PM


All times are GMT +1. The time now is 02:42 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"