Thanks Perove. Yes Microsoft Office 8.0 object Library is Referenced properly and fs is Dimmed As Object at the head of each procedure. The help files list the use of the filesearch as:
With Application.FileSearch
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
Martin
Main Topics
Browse All Topics





by: perovePosted on 2002-07-09 at 08:04:25ID: 7140853
Could be far out here but..
Filesearch is part of Office. Not the OS.
It's a object, not part of VBA.
You need to reference Microsoft office 8.0 library (on acc97). MSO97.DLL
And
Set fs = Application.FileSearch should'nt it be something like..
set fs = FileSearch.SOMETHING
Right??
perove