Macro to unlock workbook for set amount of time

yoninov

New Member
Joined
Mar 27, 2019
Messages
7
I am new to this forum. I have been using it for research for a while but this is my first post. I have a excel test that we give to employees that should be completed in 30 minutes. I want to add a macro so that they can only have the time allotted to complete the test. It should do the following:

1) Upon opening of the workbook everything is locked and they can't move off the first sheet
2) In the first sheet they can push a button (activate the macro) that unlocks the rest of the workbook
3) after 30 minutes everything is locked again (and they cannot push the button on the first page to restart)
4) There will be another button that can reset the timer to start again but that can only be done with a password (which I will have) - this one doesn't need to be a button, as long as i can go back and reset it.

Thanks so much in advance.
 

Some videos you may like

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Watch MrExcel Video

Forum statistics

Threads
1,108,787
Messages
5,524,870
Members
409,607
Latest member
charleswaynemc

This Week's Hot Topics

Top