Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In the ThisWorkbook module try...
Option Explicit Dim Expiry As Long Private Sub Workbook_Open() Expiry = 38958 'serial number for date 8/29/6 If Date = Expiry Then MsgBox "This workbook has expired." 'warning optional With ThisWorkbook .Save .ChangeFileAccess Mode:=xlReadOnly Kill .FullName .Close SaveChanges:=False End With End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Kill file | Excel Programming | |||
Kill a File | Excel Programming | |||
Kill | Excel Programming | |||
'Kill' | Excel Programming | |||
File kill help | Excel Programming |