bjurney
Active Member
- Joined
- Aug 24, 2009
- Messages
- 320
I am trying to modify this bit of code to tell me the date the file was created on, I tried several diffrent things, but I cant seem to figure it out:
Hope someone can help!
Code:
With Application.FileSearch
.LookIn = "C:\My_Folder\"
.Filename = Range("A1").Value
If .Execute > 0 Then
MsgBox "There were " & .FoundFiles.Count & _
" file(s) found."
For i = 1 To .FoundFiles.Count
MsgBox .FoundFiles(i)
Next i
Else
MsgBox "There were no files found."
End If
End With
Hope someone can help!