FileSearch Property
Applies To
Application object.
Description
Returns a FileSearch object that can be used to search for files using either an absolute or relative path. Read-only.
Example
This example displays, in a series of message boxes, the file names in the My Documents folder that begin with 97.
With Application.FileSearch
.FileName = "97*.*"
.LookIn = "C:\My Documents"
.Execute
For I = 1 to .FoundFiles.Count
MsgBox .FoundFiles(I)
Next I
End With