Overkill32
New Member
- Joined
- May 13, 2011
- Messages
- 49
Is there a way (function or macro) to get the time or date that a specific file was opened (not saved)?
Thanks for the help
Thanks for the help
Private Sub Workbook_Open()
Worksheets("Sheet1").Range("A1").Value = Now
End Sub
Dim ThisWorkbooksOpenDateTime As Date
Private Sub Workbook_Open()
ThisWorkbooksOpenDateTime = Now
End Sub
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Worksheets("Sheet1").Range("A1").Value = ThisWorkbooksOpenDateTime
End Sub