I would not use the FileSearch object to do this, you can just use th
Dir function:
Code
-------------------
Sub test()
Dim strFound As String
strFound = Dir(Interaction.Environ$("userprofile") & "\My Documents\Test files\up12_7.txt")
If Len(strFound) 0 Then
MsgBox "File found"
Else
MsgBox "File NOT found."
End If
End Sub
-------------------
HTH
T
--
Message posted from
http://www.ExcelForum.com