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





The FileSearch Object

 
Sub fileSearch()
    Dim fs As fileSearch
    Dim numFiles As Long
    Set fs = Application.fileSearch
    With fs
        .NewSearch
        numFiles = .Execute
    End With
End Sub

 










Related examples in the same category

1.PropertyTests
2.The FoundFiles Collection Object
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