This will give you the information you want
In the TEST sub, substitute "ActiveWorkbook.FullName" for you file's spec
Sub TEST_ShowFileInfo()
Debug.Print ShowFileInfo(ActiveWorkbook.FullName)
End Sub
''
***************************************************************************
'' Purpose : Get a file's "Date Created"
Function ShowFileInfo(filespec)
Dim fs, f, s
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFile(filespec)
ShowFileInfo = Format(f.DateCreated, "yyyy-mm-dd")
End Function
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.