With Application.FileSearch
.NewSearch
.LookIn = "C:\My Documents"
.SearchSubFolders = True
.FileName = "Run"
' .MatchTextExactly = True
.FileType = msoFileTypeExcelWorkbooks
If .Execute() > 0 Then
For i = 1 To .FoundFiles.Count
if lcase(Right(.FoundFiles(i),7))="\run.xls" then
workbooks.open .foundfiles(i)
exit for
Next i
Else
MsgBox "file not found."
End If
End With
MatchTextExactly only pertains to searching for a word in a document - does
not pertain to the file name.
Regards,
Tom Ogilvy