Checking for File Presence

jkfeagle

Codus Confusious
Local time
Today, 09:25
Joined
Aug 22, 2002
Messages
166
This probably has a simple answer and I've looked through the forum to no avail but...... does anyone have a snippet of code that checks for the presence of a file? Thanks in advance.
 
Look into the DIR function:

If DIR("YourFilePathAndNameHere") <> "" Then
' file exists
Else
' file doesn't exist
End If
 
Thanks Bob. I knew there'd be a simple answer. My brain is fried...it's been a long week!
 

Users who are viewing this thread

Back
Top Bottom