LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Workbook Deactivate event problem

Hi,

The issue I am having is easily reproducible I think (I'm using Office
2003):

1. Create two files: Book1.xls, and Book2.xls.
2. In Book1.xls, add any code to the Workbook_Deactivate event. I've
used this:
Private Sub Workbook_Deactivate()
n = 1 + 1
End Sub
3. Change any cell in both workbooks (anything that will trigger a
save prompt on exit).
4. Activate the workbook that does not contain the deactivate event
(Book2.xls).
5. Close the application using File -- Exit.

It will prompt you to save both documents. If you hit Yes to both
prompts, it will then do NOTHING. Then if you select File -- Exit
again, both files will save and close with no prompts.

I've looked around for a solution but so far haven't found anything.
Has anybody seen this before or know why it does this?

Thanks!

 
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
Changing sheets after the DeActivate Event. Richard Excel Discussion (Misc queries) 2 July 10th 08 03:49 PM
Is there a way to call selected sheet's name from on deactivate event? Wandering Mage Excel Programming 3 July 9th 04 02:09 AM
Sort sheet on sheet's Deactivate event BountyHunter Excel Programming 3 May 25th 04 08:31 AM
Activate / Deactivate mouse move event Rolo[_3_] Excel Programming 2 January 29th 04 01:50 PM
Workbook Deactivate Event TerryF[_2_] Excel Programming 1 January 6th 04 01:16 AM


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