Hi All
An old thread has come to my attention (Link below) which enables you to close a project after an elapsed time
http://www.excelforum.com/excel-gene...xcel-file.html
The code (shamlessly taken from the post ) is below
advancing on from this is there a way of getting a message box to appear say 7 days before the termination datePrivate Sub Workbook_Open()
If Date > DateSerial(2013, 1, 10) Then
If InputBox("Please enter code ") = "123" Then
Exit Sub
Else
MsgBox "The time limit has passed. This workbook will now close."
ActiveWorkbook.Close
End If
End If
End Sub
regards Moose
Bookmarks