How To Automatically Save And Close Workbook After Inactivity In Excel

preview_player
Показать описание
In this advanced excel tutorial i'll show you how you can automatically save and close a workbook after a certain time of inactivity. Sometimes we work on confidential workbooks and forgot to close it every time we leave the work-space. This is where this quick excel tutorial will be helpful.
The idea is to save & close opened workbook if the user is not active for certain time. Most important part is the you can change your inactivity duration with your preferred time. Now lets follow the below procedure to automatically save & close workbook after certain time of inactivity.

Step 3: Click "Insert" and then "Module"
Step 5: Click On "ThisWorkbook" from the project pane at the left side of the VBE (Visual Basic Editor)
Step 7: Save the workbook in .xlsm format
Step 8: Done. After 15 seconds of inactivity the workbook will be saved and closed.
PS. You can change the time duration by changing this line of the code: CloseTime = Now + TimeValue("00:00:15")

Thanks for watching.
#Automatic #Save&Close
-------------------------------------------------------------------------------------------------------------
Support the channel with as low as $5
-------------------------------------------------------------------------------------------------------------
Please subscribe to #excel10tutorial

Playlists:

Social media:
Рекомендации по теме
Комментарии
Автор

got some syntax error on " Sub timestop () . PLease help

hannahhersheyctv
Автор

where to sign in to get the codes?
thanks

hannahhersheyctv
Автор

Hi thank you for the video, I have subscribed and signed up using the link but yet to get the code, do you mind helping to check for me again?

rawoyster
Автор

Hi
Can I have the code? I liked it.



BR

marcangebattinicolonna
Автор

how can i get the codes? where to sign in?

MrMajidAbdak
Автор

The code doesn't work for some reason. I copied it exactly as shown but it does nothing.
Did anyone else get it to work?

StanCollins
Автор

Hi there i can't sign up
I already subscribed
Plz help

susantlalu