Timer for auto shut down

  • Thread starter Thread starter Randy
  • Start date Start date
R

Randy

Iam using a macro as follows

Sub Timer()
Application.OnTime Now + TimeValue("00:10:00"), "savequit"
end Sub

I auto_open this and was trying to re-activate it with other macros
that are used in the spreadsheet so as long as there was activity the
above timer would be reset to the original TimeValue but it doesn't
work. Is there any way that the above timer can be reset with
different macros or a way to determine if there is no activity after a
predetermined amount of time that the spreadsheet saves itself and
closes the application.

Thank You in Advance
Randy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top