Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The the FileSearch object:
Sub FileSearchExample() Dim fs As FileSearch Dim i As Integer Set fs = Application.FileSearch fs.LookIn = "c:\windows" fs.FileName = "shell32.*" fs.SearchSubFolders = True If fs.Execute 0 Then For i = 1 To fs.FoundFiles.Count MsgBox fs.FoundFiles(i) Next i Else MsgBox "No files were found" End If End Sub -- Jim Rech Excel MVP |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Looping | Excel Discussion (Misc queries) | |||
Looping question | Excel Discussion (Misc queries) | |||
Not Looping | Excel Discussion (Misc queries) | |||
Looping | Excel Discussion (Misc queries) | |||
looping through a set of calculations | Excel Worksheet Functions |