Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Autoclose excel file after x minutes of inactivity

Hello,

Is there a possibility to automatically close an excel file after for
example 5 minutes of inactivity on the file ?

We have at our company for each department a file in which they need to fill
in production data. 2 times per day this data is collected into an overview
file.
But I often have to call the departments to ask them to close the file so
that I can run the collection macro's.

Regards,
Peter
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default Autoclose excel file after x minutes of inactivity

Not sure about detecting inactivity using VBA but one route may be to
consider adding an OnTime routine which would call a procedure to close the
workbook after 5 mins or whatever you want - However, this does rely on users
enabling macro's.

Chip Pearson has some woking examples:
http://www.cpearson.com/excel/OnTime.aspx
--
JB


"Hardhit" wrote:

Hello,

Is there a possibility to automatically close an excel file after for
example 5 minutes of inactivity on the file ?

We have at our company for each department a file in which they need to fill
in production data. 2 times per day this data is collected into an overview
file.
But I often have to call the departments to ask them to close the file so
that I can run the collection macro's.

Regards,
Peter

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 471
Default Autoclose excel file after x minutes of inactivity

Perhaps a better way would be to have the spreadsheet auto-save when new data
is entered in it. Then it wouldn't really matter if they closed it or not.
You could open it read-only and get the data out. To do this you could set
up a counter that counts entries, read that # when you first open the
spreadsheet and when it changes initiate a save routine.

An even better solution would be to write the data to an external
data-source like an access file. Then you wouldn't care if they were in the
spreadsheet or not because you would read the data out of access (or you
could read it in excel but it would be stored in Access). There are examples
for doing this on this discussion gruop, or I could set it up for you.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,345
Default Autoclose excel file after x minutes of inactivity

workbook after 5 mins or whatever you want - However, this does rely on
users
enabling macro's.


In addition if the sheet is left in edit mode the macro will not run either.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"john" wrote in message
...
Not sure about detecting inactivity using VBA but one route may be to
consider adding an OnTime routine which would call a procedure to close
the
workbook after 5 mins or whatever you want - However, this does rely on
users
enabling macro's.

Chip Pearson has some woking examples:
http://www.cpearson.com/excel/OnTime.aspx
--
JB


"Hardhit" wrote:

Hello,

Is there a possibility to automatically close an excel file after for
example 5 minutes of inactivity on the file ?

We have at our company for each department a file in which they need to
fill
in production data. 2 times per day this data is collected into an
overview
file.
But I often have to call the departments to ask them to close the file so
that I can run the collection macro's.

Regards,
Peter




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
Excel now takes three minutes to load a file - didn't yesterday paulb104 Excel Discussion (Misc queries) 1 April 24th 08 09:03 PM
Auto saving & closing a file after inactivity [email protected] Excel Programming 1 September 20th 06 12:59 PM
auto save excel file every 10 minutes to its original file name MEG Excel Discussion (Misc queries) 3 September 8th 05 07:12 PM
XP Inactivity Logout Timmothy Gransbury Excel Programming 2 May 3rd 04 06:06 PM
Shared workbook inactivity warning evillen[_3_] Excel Programming 4 November 11th 03 08:55 PM


All times are GMT +1. The time now is 03:42 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"