S
Susanthika
Hi Guys,
I intend to use the FileSearch object to list files matching certai
criteria(eg file name & file size). The code displayed below works fin
so long as folders are specified as the input directory/path to search
However, whenever I provide a Drive letter such as "C:\" or "D:\" a
the inpu path, the code executes indefinitely without responding. Th
code has been displayed below.
Please suggest a way to use Drive letter as Input Path
With Application.FileSearch
.NewSearch
.LookIn = "D:\"
.SearchSubFolders = includeSubFolders
.Filename = searchKeyName
.FileType = msoFileTypeAllFiles
End With
Set ACell = ActiveCell
With Application.FileSearch
If .Execute >0 ..... <I>(The code goes into an indefinit
execution mode at this point) </I>
Thanks in advance,
Susanthik
I intend to use the FileSearch object to list files matching certai
criteria(eg file name & file size). The code displayed below works fin
so long as folders are specified as the input directory/path to search
However, whenever I provide a Drive letter such as "C:\" or "D:\" a
the inpu path, the code executes indefinitely without responding. Th
code has been displayed below.
Please suggest a way to use Drive letter as Input Path
With Application.FileSearch
.NewSearch
.LookIn = "D:\"
.SearchSubFolders = includeSubFolders
.Filename = searchKeyName
.FileType = msoFileTypeAllFiles
End With
Set ACell = ActiveCell
With Application.FileSearch
If .Execute >0 ..... <I>(The code goes into an indefinit
execution mode at this point) </I>
Thanks in advance,
Susanthik