FoundFiles Property

Applies To

FileSearch object.

Description

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

Example

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

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