Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Workbook_Open ?
-- Jim Cone San Francisco, USA http://www.realezsites.com/bus/primitivesoftware "Spreadsheet Solutions" wrote in message . .. I know that this event does not exist, 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. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() maybe have a workbook which opens that workbook and then put code i that once it closes to run another piece of code that you want to ru in your "afterclose event -- funkymonkU ----------------------------------------------------------------------- funkymonkUK's Profile: http://www.excelforum.com/member.php...fo&userid=1813 View this thread: http://www.excelforum.com/showthread.php?threadid=52956 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
A workbook has to be open to run the code in it, so it couldn't invovle
anything in the workbook being closed. If you instatiate Application Level events, then maybe the Windows Activate event or use Ontime in the Application level beforeclose event. -- Regards, Tom Ogilvy "Spreadsheet Solutions" wrote: 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. |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Just use Ontime to fire a macro after it is closed. Chip has lots of detail
at http://www.cpearson.com/excel/ontime.htm -- HTH Bob Phillips (remove nothere from email address if mailing direct) "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. |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
MsgBox in Enter event causes combobox not to run Change event | Excel Programming | |||
How to trap delete row event and hide column event? | Excel Programming | |||
user form-on open event? keydown event? | Excel Programming | |||
Event Procedures: Event on Worksheet to fire Event on another Worksheet | Excel Programming | |||
OnTime event not firing in Workbook_Open event procedure | Excel Programming |