Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Events for workbook close

Are there any events when we KNOW the workbook is being closed?

The BeforeClose event is a nuisance, because the user can click cancel
afterwards. Rewriting the "Are you sure?" dialogue is a possibility, but
it's really a waste if there is a better way.

Thanks,
Aaron Queenan.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Events for workbook close

Code doesn't run in a closed workbook, so there is no afterclose event.

Regards,
Tom Ogilvy


"Aaron Queenan" wrote in message
...
Are there any events when we KNOW the workbook is being closed?

The BeforeClose event is a nuisance, because the user can click cancel
afterwards. Rewriting the "Are you sure?" dialogue is a possibility, but
it's really a waste if there is a better way.

Thanks,
Aaron Queenan.




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Events for workbook close

Yes, but you can subscribe to the event from somewhere other than the
workbook, and we can listen to the Application_WorkbookBeforeClose event
instead.

Thanks,
Aaron Queenan.

"Tom Ogilvy" wrote in message
...
Code doesn't run in a closed workbook, so there is no afterclose event.

Regards,
Tom Ogilvy


"Aaron Queenan" wrote in

message
...
Are there any events when we KNOW the workbook is being closed?

The BeforeClose event is a nuisance, because the user can click cancel
afterwards. Rewriting the "Are you sure?" dialogue is a possibility,

but
it's really a waste if there is a better way.

Thanks,
Aaron Queenan.






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Events for workbook close

That doesn't change anything you have spoken of - it is still triggered
before close. Apparently you aren't asking a question, so continue to
proselytize the gathered masses.

Regards,
Tom Ogilvy


"Aaron Queenan" wrote in message
...
Yes, but you can subscribe to the event from somewhere other than the
workbook, and we can listen to the Application_WorkbookBeforeClose event
instead.

Thanks,
Aaron Queenan.

"Tom Ogilvy" wrote in message
...
Code doesn't run in a closed workbook, so there is no afterclose event.

Regards,
Tom Ogilvy


"Aaron Queenan" wrote in

message
...
Are there any events when we KNOW the workbook is being closed?

The BeforeClose event is a nuisance, because the user can click cancel
afterwards. Rewriting the "Are you sure?" dialogue is a possibility,

but
it's really a waste if there is a better way.

Thanks,
Aaron Queenan.








  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Events for workbook close

I am asking for a way of receiving an event either when the workbook is
REALLY ready to close, or after the workbook has closed.

Regards,
Aaron Queenan.

"Tom Ogilvy" wrote in message
...
That doesn't change anything you have spoken of - it is still triggered
before close. Apparently you aren't asking a question, so continue to
proselytize the gathered masses.

Regards,
Tom Ogilvy


"Aaron Queenan" wrote in

message
...
Yes, but you can subscribe to the event from somewhere other than the
workbook, and we can listen to the Application_WorkbookBeforeClose event
instead.

Thanks,
Aaron Queenan.

"Tom Ogilvy" wrote in message
...
Code doesn't run in a closed workbook, so there is no afterclose

event.

Regards,
Tom Ogilvy


"Aaron Queenan" wrote in

message
...
Are there any events when we KNOW the workbook is being closed?

The BeforeClose event is a nuisance, because the user can click

cancel
afterwards. Rewriting the "Are you sure?" dialogue is a

possibility,
but
it's really a waste if there is a better way.

Thanks,
Aaron Queenan.












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
workbook before close mohavv Excel Discussion (Misc queries) 2 November 21st 07 01:27 AM
Understand Workbook/Worksheet Events Zamdrist Excel Discussion (Misc queries) 4 August 10th 06 04:56 PM
run macro on workbook close Nigel Excel Discussion (Misc queries) 3 November 29th 05 08:48 PM
close only one workbook bobsmom70601 New Users to Excel 1 March 8th 05 09:43 PM
cannot close workbook chrisneill Excel Programming 3 July 13th 03 11:10 PM


All times are GMT +1. The time now is 05:10 PM.

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

About Us

"It's about Microsoft Excel"