File Listing in a Directory
Hi!
Could someone tell me whats wrong with these codes?
Sub FileList()
Dim File As Variant
With Application.FileSearch
.LookIn = "C:\"
.FileType = msoFileTypeAllFiles
.Execute
For Each File In .FoundFiles
MsgBox File
Next File
End With
End Sub
Run Time Error 445 - Object does not support this action!
Thanks
|