can you auto lock a workbook after a certain date

nplano1

New Member
Joined
Sep 6, 2014
Messages
22
Is there any way to auto lock a workbook after a certain date and it would need a password to unlock it and use again.

Now I do have a splash screen that opens when the workbook first opens and goes away after 10 seconds
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Welcome to the Board!

Sure, you can put a static date into a hidden sheet and evaluate it in the open event. If it's passed your date then use an inputbox/userform for a password and if it doesn't pass then close the wb.

You might want to be careful about legal implications of locking people out though. It's be a topic of conversation for years and does regard weighing very seriously depending on your situation.

HTH,
 
Upvote 0
Thank you for the info not to sure what static date is as I'm new to all this but I will look it up and try. Thanks agan
 
Upvote 0
A Static Date means that you plug in your hard-entered expiration date somewhere. It just means that it's a date that's not going to change unless you change it.
 
Upvote 0

Forum statistics

Threads
1,203,690
Messages
6,056,755
Members
444,889
Latest member
ibbara

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top