Problem - I have a workbook, call it workbook1 that gets updated every day by a macro in workbook2. It works great except for one problem, a host of people need read/write access to workbook1. I already have workbook1 as recommended read-only, but occasionally some one will open up workbook1 and forget to close it and hence my macro isn't able to update the file.
My preference would be to 1). have another scheduled task to run at say 6AM and if workbook1 is open, just close it.
If I can't do that I'd like to 2). install an event in Workbook1 that closes it at 6am, but how would I trigger that event.
Because I didn't know how to do either of the 2 options above, what I have done is 3). I've installed a macro that starts the clock ticking when the file is opened and then gives a warning message telling them to close the file after 1 hour and if they don't close it in another 15 minutes it closes the file automatically and doesn't save the changes, but does save there changes as a backup file just in case. But despite this, some of my colleagues aren't happy with this solution, these are the same people who constantly forget to close the workbook.
Any suggestions on how to do either 1 or 2 above?
My preference would be to 1). have another scheduled task to run at say 6AM and if workbook1 is open, just close it.
If I can't do that I'd like to 2). install an event in Workbook1 that closes it at 6am, but how would I trigger that event.
Because I didn't know how to do either of the 2 options above, what I have done is 3). I've installed a macro that starts the clock ticking when the file is opened and then gives a warning message telling them to close the file after 1 hour and if they don't close it in another 15 minutes it closes the file automatically and doesn't save the changes, but does save there changes as a backup file just in case. But despite this, some of my colleagues aren't happy with this solution, these are the same people who constantly forget to close the workbook.
Any suggestions on how to do either 1 or 2 above?