The FoundFiles Collection Object : FileSearch « File Path « VBA / Excel / Access / Word






The FoundFiles Collection Object

 
Sub found()
    Dim ff As FoundFiles
    Dim fs As fileSearch
    Dim I As Integer
    Set fs = Application.fileSearch
    Set ff = fs.FoundFiles
    With ff
        For I = 1 To ff.Count
            Debug.Print ff.Item(I)
        Next I
    End With
End Sub

 








Related examples in the same category

1.The FileSearch Object
2.PropertyTests
3.if a particular file exists, and False if not
4.searches the My Documents directory and its subdirectories for all XLS files that contain the text budget.
5.Find a file
6.Find a file with wildcard character
7.File files with Application.FileSearch
8.Use Application.FileSearch to find files