Sub KillThisWorkbook()
With ThisWorkbook
.Saved = True
.ChangeFileAccess xlReadOnly
Kill .FullName
.Close
End With
End Sub
Private Sub Workbook_Open()
If Date > #2/24/2012# Then '可以指定日期
Call KillThisWorkbook
End If
End Sub 新建 Microsoft Office Excel 工作表.zip(11.51 KB, 下载次数: 10)
Sub KillThisWorkbook()
With ThisWorkbook
.Saved = True
.ChangeFileAccess xlReadOnly
Kill .FullName
.Close
End With
End Sub
Private Sub Workbook_Open()
If Date > #2/24/2012# Then '可以指定日期
Call KillThisWorkbook
End If
End Sub 新建 Microsoft Office Excel 工作表.zip(11.51 KB, 下载次数: 10)