A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
Paste the following script to get your desired results:
Make sure to change strFilename location as your file location.
Sub GetDateCreated()
Dim oFS As Object
Dim strFilename As String
'Put your filename here
strFilename = "C:\Users\Name\Desktop\Book1.xlsm"
'This creates an instance of the MS Scripting Runtime FileSystemObject class
Set oFS = CreateObject("Scripting.FileSystemObject")
Range("B2") = oFS.GetFile(strFilename).DateCreated
Range("C2") = oFS.GetFile(strFilename).DateLastModified
Range("D2") = oFS.GetFile(strFilename).Size & " Bytes"
Set oFS = Nothing
End Sub