Timelaps

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I was wondering whether there was a way to put a code in VBA that if an excel
spreadsheet is not used after a certian time eg 30 minutes then it closes the
spreadsheet but save prior to closing.

Thanks
Noemi
 
You can probably do this with a combination of events (such as
Workbook_SheetChange, Workbook_SheetSelectionChange and
Workbook_SheetActivate) all linked to a macro calling the
application.onTime method.

The events would trigger the restarting of the clock which will cause a
save followed by a close after your chosen length of time.
 

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

Similar Threads

how to update info 1
Disable Exit button on a UserForm 1
Alt codes 4
FindFirst, FindLast and select 2
Remove Main Toolbar 1
Findnext 1
Counting cells with a specific fill color 2
Deleting Code from VBA 1

Back
Top