Archive of Mr Excel Message Board


Back to Excel VBA archive index
Back to archive home

check if file exists?

Posted by doug on January 24, 2001 2:03 PM
anyone know a fast way to check if a file exists?

Check out our Excel VBA Resources

Re: check if file exists?

Posted by Celia on January 24, 2001 4:35 PM


If Dir("full path filename") <> "" Then
MsgBox "File exists"
Else
MsgBox "File does not exist"
End If



This archive is from the original message board at www.MrExcel.com.
All contents © 1998-2004 MrExcel.com.
Visit our online store to buy searchable CD's with thousands of VBA and Excel answers.
Microsoft Excel is a registered trademark of the Microsoft Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.