How to restrict someone to open excel file with in time range

New Contributor



I required a solution with in excel that if someone try to access or open excel workbook within restricted time range (for example: 9 Am to 12 PM IST) then he/she should get prompt or popup dialogue box as they shouldn't have access to open that excel file within the set time range.


Thanks in advance

2 Replies
Using VBA scripts, we can easily achieve this. If VBA solution works for you, let me know.

Will share script with you

Yes please share the script