Using: Windows XP SP1, MS-EXCEL 2002 SP1
How do I show the current file or active file's creation date. Can this be made into a function a user calls so the information is place in a cell specified by the user.
I have found the following code but do not how to get it to show in the SHEET.
Thanks,
James
How do I show the current file or active file's creation date. Can this be made into a function a user calls so the information is place in a cell specified by the user.
I have found the following code but do not how to get it to show in the SHEET.
Code:
Sub ShowFileInfo(filespec)
Dim fs, f, s
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFile(filespec)
s = f.DateCreated
MsgBox s
End Sub
Thanks,
James