Hello
I am using the function. the f.DateCreated gives me the today value, not the real the file created date.
Any ideas?
Thanks
I am using the function. the f.DateCreated gives me the today value, not the real the file created date.
Any ideas?
Thanks
VBA Code:
Private Sub Workbook_AfterSave(ByVal Success As Boolean)
Sheets("MAIN").Select
filespec = Sheets("MAIN").Cells(1, 3).Value
Dim fs, f, s
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFile(filespec)
Sheets("MAIN").Cells(2, 5).Value = f.DateCreated
Sheets("MAIN").Cells(3, 5).Value = f.DateLastAccessed
Sheets("MAIN").Cells(4, 5).Value = f.DateLastModified
End Sub