VANCOUVER_RON
New Member
- Joined
- Apr 23, 2019
- Messages
- 3
I want to automatically close an Excel file after a period of inactivity. This was helpful as a start, but...
Not precisely what I'm looking for. It appears the ''timer" starts running when you open the Excel file and doesn't stop. Then the "ballistic" code saves and closes the file
automatically after the timer runs out, even if you're actively using the Excel file.
I need to "reset" the timer every time the user is actively using the Excel file--inserting data, updating a form--doing anything in the file resets the timer. It's only after a
period of time of inactivity (e.g., one hour of inactivity) that I want the "shut down" timer to begin. For example, if the file is inactive for an hour, then the timer
(e.g., 30 seconds) begins running and the file automatically closes and saves after the 30 second timer runs out.
In other words, activity in the file continually resets the shut-down timer. That's what I'm looking for.
How to save and close workbook after inactivity for a certain amount of time?
Learn how to automatically save and close an Excel workbook after a period of inactivity using VBA code.
www.extendoffice.com
Not precisely what I'm looking for. It appears the ''timer" starts running when you open the Excel file and doesn't stop. Then the "ballistic" code saves and closes the file
automatically after the timer runs out, even if you're actively using the Excel file.
I need to "reset" the timer every time the user is actively using the Excel file--inserting data, updating a form--doing anything in the file resets the timer. It's only after a
period of time of inactivity (e.g., one hour of inactivity) that I want the "shut down" timer to begin. For example, if the file is inactive for an hour, then the timer
(e.g., 30 seconds) begins running and the file automatically closes and saves after the 30 second timer runs out.
In other words, activity in the file continually resets the shut-down timer. That's what I'm looking for.