Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ed Ed is offline
external usenet poster
 
Posts: 279
Default Automatically Close Workbook

Could someone suggest some code that would automatically close a workbook if
there has been no activity (data entry, navigating between cells, changing
worksheets etc.) in that workbook for 3 minutes?

In conjunction with this, how can I ensure that other events in excel (such
as an autosave promt) do not interfere with this procedure?

I'm just learning to use VBA so please use small words and speak slowly!


thanks for any advice.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Automatically Close Workbook

See here for how to and why you might not want to.
http://www.officekb.com/Uwe/Forum.as...ter-10-Minutes


Replace ThisWorkbook.Save with Application.DisplayAlerts = False

ed wrote:
Could someone suggest some code that would automatically close a workbook if
there has been no activity (data entry, navigating between cells, changing
worksheets etc.) in that workbook for 3 minutes?

In conjunction with this, how can I ensure that other events in excel (such
as an autosave promt) do not interfere with this procedure?

I'm just learning to use VBA so please use small words and speak slowly!

thanks for any advice.


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200611/1

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
automatically close second workbook [email protected] uk Excel Discussion (Misc queries) 4 December 17th 09 01:57 AM
automatically close second workbook [email protected] uk Excel Discussion (Misc queries) 2 December 14th 09 10:14 PM
Close form automatically upon opening workbook Ixtreme Excel Discussion (Misc queries) 2 September 18th 09 02:56 PM
close without saving automatically goofy11 Excel Programming 2 September 14th 05 02:29 AM
Automatically close a userform ForSale[_55_] Excel Programming 1 October 2nd 04 12:39 PM


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