If Dir("C:\Myfile.ext") <> "" Then ' .. code to open the file Else ' .. display message that the file could not be found End If