Where'd you put it? Jimbo's code goes in a worksheet specific module, not a general module.i put that in and nothing happens. i even set the date back...
ans = MsgBox("Your trial period has expired" & vbCrLf & _
"Time to pay up!", _
vbOKOnly, "Trial Period Expiration")
If ans = vbOK Then ActiveWorkbook.Close False
Option Explicit
Private Sub Worksheet_Activate()
If Date > #6/7/2004# Then
MsgBox "This worksheet has expired. (Pay up sucka!)"
ActiveSheet.Protect "password"
Sheets(1).Select
Sheets("YourSheetName").Visible = xlVeryHidden
End If
End Sub