#1   Report Post  
Posted to microsoft.public.excel.misc
Noemi
 
Posts: n/a
Default Timelaps

I was wondering whether there was a way to put a code in VBA that if an excel
spreadsheet is not used after a certian time eg 30 minutes then it closes the
spreadsheet but save prior to closing.

Thanks
Noemi
  #2   Report Post  
Posted to microsoft.public.excel.misc
mrice
 
Posts: n/a
Default Timelaps


You can probably do this with a combination of events (such as
Workbook_SheetChange, Workbook_SheetSelectionChange and
Workbook_SheetActivate) all linked to a macro calling the
application.onTime method.

The events would trigger the restarting of the clock which will cause a
save followed by a close after your chosen length of time.


--
mrice


------------------------------------------------------------------------
mrice's Profile: http://www.excelforum.com/member.php...o&userid=10931
View this thread: http://www.excelforum.com/showthread...hreadid=533609

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



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