LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default WorkbookAfterClose Event

Guys or girls;

I solved it.
I used the Application.OnTime method to trigger the procedure that must run
after the save.

Why was this important.

I have a workbook were different users have different views on that
workbook.
This means that not all of them can see all worksheets and that a user has
to log on to create his specific view.

When you close the workbook a self-created before close procedure runs to
check for a yes/no save or cancel.
If Yes the initial settings (one sheet visible) are restored before the book
is saved.
If No the book closes without save.
This works fine as the workbook has not been saved before and these initial
settings appear when a user opens the book again.
The latter is what always must be the case; when you open the workbook, only
the first sheet is visible.

But; when a user saves the book and goes on editing the tricky thing
appeared.
When he then wants to close the workbook without saving the initial settings
must be created again, but no editing may be saved.
That contradicts.

I realized that I can only create that situation when before saving the
initial settings are created and immediatly after
saving, the users specific settings are restored again.

So; I solved it this way.
Still, I'm eager to see if alternatives or better ways are available.

Thanks for the help.

---
Mark Rosenkrantz
---
Spreadsheet Solutions
Witkopeend 24
1423 SN
Uithoorn, Netherlands
---
E:
W:
www.rosenkrantz.nl


"Spreadsheet Solutions" wrote in message
. ..
I know that this event does not excists, but I need one.
Does anyone know how to create or mimick such an event.

The reason is a bit complicated, but a hint in a good direction is
nonetheless very much appreciated.





 
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
MsgBox in Enter event causes combobox not to run Change event Richard Excel Programming 0 March 6th 06 02:52 PM
How to trap delete row event and hide column event? Alan Excel Programming 3 April 26th 05 04:25 PM
user form-on open event? keydown event? FSt1[_3_] Excel Programming 2 August 5th 04 02:26 PM
Event Procedures: Event on Worksheet to fire Event on another Worksheet Kathryn Excel Programming 2 April 7th 04 07:35 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 11:44 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"