G Guest Sep 24, 2004 #1 How do I validate if a file exists without using On Error Resume Next then trying to open it?
T Tom Ogilvy Sep 24, 2004 #2 if dir("C:\Myfolder\Myfile.xls") = "" then msgbox "It doesn't exist" exit sub Else workbooks.Open c:\Myfolder\Myfile.xls" End if
if dir("C:\Myfolder\Myfile.xls") = "" then msgbox "It doesn't exist" exit sub Else workbooks.Open c:\Myfolder\Myfile.xls" End if