
December 26th, 2003, 01:25 AM
|
|
Junior Member
|
|
Join Date: Dec 2003
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
vba application.filesearch
I am using application.filesearch with lookin but it searches entire drive? if I remove msoFileTypeAllFiles then it is unable to locate file?
code is like this
With Application.FileSearch
.NewSearch
.LookIn = PerformanceBook.Path
.FileType = msoFileTypeAllFiles
.SearchSubFolders = True
.Filename = "omsTimes.csv"
If (.Execute(msoSortByFileName, msoSortOrderDescending) <> 0) Then
For lngCount = 1 To .FoundFiles.Count
Thanx in adv
|