Can I allow users limited time to edit spreadsheet

  • Thread starter Thread starter Melanie
  • Start date Start date
M

Melanie

I have a spreadsheet that is placed on a share drive and
a lot of people have access to it and many must edit
information. The problem we're having is they're all
trying to get in the file at the same time and some open
the file and leave it open for a long time. This keeps
others from being able to input their information. Is
there a way to set a time limit as to how long you can
keep a file open so that nobody accidentally leaves the
file open? Thanks!
 
This will close the wb after 5 min. Press Alt+F11, Insert
Module, and paste in the code below:

Sub Auto_Open()
Application.OnTime Now + TimeValue("00:05:00"), "Closeit"
End Sub

Sub Closeit()
With ActiveWorkbook
.Save
.Close
End With
End Sub
 

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