Hi,
I am trying to use Application.FileSearch to find all Excel files in a certain folder. For some reason no files are found although there are definitely Excel files in this folder. Here is my code:
Set fs = Application.FileSearch
With fs
.LookIn = "C:\Documents and Settings\Chris\My Documents\Files Not Scanned"
.Filename = "*.xls"
.Execute
myfiles = .FoundFiles.Count
End With
Any ideas?
I am trying to use Application.FileSearch to find all Excel files in a certain folder. For some reason no files are found although there are definitely Excel files in this folder. Here is my code:
Set fs = Application.FileSearch
With fs
.LookIn = "C:\Documents and Settings\Chris\My Documents\Files Not Scanned"
.Filename = "*.xls"
.Execute
myfiles = .FoundFiles.Count
End With
Any ideas?