Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default auto_close addin

I have addin which unload on "auto_close". but i noticed that if user has
modified the Excel sheet and try to quite excel, Excel is showing dialog to
confirm to save changes. If user click "Cancel" for it ,still auto_close is
invoking.

So what is best way to verify user have clicked "Cancel" button and
don't unload the add-in

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default auto_close addin

I don't think it's possible to prevent the close event firing before the
cancel close dialog appears. However the addin should still remain open at
this stage.

In the close event you could call another routine with the OnTime method. In
this you could perhaps reinstate whatever was done in the close event, eg
re-create menu items. Or if you maintain a global AppRunning type flag
change it in the close event, later any routine that needs things in place
can check it and do as necessary.

Regards,
Peter T


"drew_p" wrote in message
...
I have addin which unload on "auto_close". but i noticed that if user has
modified the Excel sheet and try to quite excel, Excel is showing dialog

to
confirm to save changes. If user click "Cancel" for it ,still auto_close

is
invoking.

So what is best way to verify user have clicked "Cancel" button and
don't unload the add-in



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
Auto_Close JohnUK Excel Programming 2 June 26th 06 03:23 PM
BeforeClose vs Auto_Close [email protected] Excel Programming 16 June 3rd 05 10:06 PM
Question about auto_close Neil[_20_] Excel Programming 3 July 7th 04 09:24 PM
Auto_Close() needs help Phil Hageman[_3_] Excel Programming 3 November 19th 03 05:56 PM
Auto_Close Luc Benninger Excel Programming 2 October 14th 03 12:34 PM


All times are GMT +1. The time now is 01:02 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"