Morning All!
I found this short code on the net last night and figured I would try it out.
Now every time I open a new blank workbook, I get the MsgBox saying the expired phrase. I looked for the code inside the new WB and can not find it. What has happened? Why can't I stop this from happening?
Can anyone please give me a hand with this, I need to get this cleared up!
Thanks.
Pujo
I found this short code on the net last night and figured I would try it out.
Code:
Sub Workbook_Open()
If Date <= 7/29/2011 Then Exit Sub
MsgBox "This workbook has expired.", 48, "Goodbye."
With ThisWorkbook
.Saved = True
.ChangeFileAccess xlReadOnly
Kill .FullName
.Close False
End With
End Sub
Can anyone please give me a hand with this, I need to get this cleared up!
Thanks.
Pujo