I have the code below which makes my excel file unusable after a certain date. Is there a way I can change the date to 3 days after the file has been downloaded instead of just a fixed date? Does excel store the date the file was first accessed somewhere? Thanks.
Private Sub Workbook_Open() If Date >= "09/26/08" Then MsgBox "Trial period has expired.", vbOKOnly, "Trial Period Has Expired" ThisWorkbook.Close (False) End If End Sub
Bookmarks