csilabgirl
Active Member
- Joined
- Aug 14, 2009
- Messages
- 359
Excel 2002.
I have the following code in place to prevent a user from having access to a workbook past a certain date. However, I just found a major flaw. If the user changes the date on their computer to a date prior to 07/30/11 then they can trick excel and still access the file. Does anyone else have any ideas for a way to put something in place that will not allow a user to access a workbook after a certain date?
Private Sub Workbook_Open()
If Date > DateValue("7/30/11") Then
MsgBox ("User access for the October 1, 2010 - July 30, 2011 contract has expired. Please contact Nicole at xxx-xxx-xxxx for renewal information")
Exit Sub
Thank you for your time
I have the following code in place to prevent a user from having access to a workbook past a certain date. However, I just found a major flaw. If the user changes the date on their computer to a date prior to 07/30/11 then they can trick excel and still access the file. Does anyone else have any ideas for a way to put something in place that will not allow a user to access a workbook after a certain date?
Private Sub Workbook_Open()
If Date > DateValue("7/30/11") Then
MsgBox ("User access for the October 1, 2010 - July 30, 2011 contract has expired. Please contact Nicole at xxx-xxx-xxxx for renewal information")
Exit Sub
Thank you for your time