FoundFiles Property

Microsoft Office Visual Basic

Returns a FoundFiles object that contains the names of all the files found during a search. Read-only.

Example

This example steps through the list of files found during a search and displays the path for each file.

With Application.FileSearch
For i = 1 To .FoundFiles.Count
    MsgBox .FoundFiles(i)
Next I
End With