How about a workbook open macro, asking for a password, and closing the book if incorrect?
Code needs to go in 'ThisWorkbook'
Code:
Private Sub Workbook_Open()
Dim myval As Variant
If CDate("02/12/2018") < Now() Then
myval = InputBox("Workbook expired, enter password to use")
If myval <> "Password" Then
ThisWorkbook.Close
End If
End If
End Sub
The only issue with that is if they disable VBA, that code will never run.
I have seen people try to do some things with hiding all the data, and you have to run VBA code to expose it. That being said, Excel security is not that great and can be bypassed.
KO3933,
What is the purpose of doing this? Sometimes if we understand not only what you are trying to do, but why, we may be able to offer other alternatives.
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.