check for file before import

  • Thread starter Thread starter tecas
  • Start date Start date
T

tecas

How would I check for a file in a directory prior to importing it? The
file is stored on a server.

\\server01\importdir\importfile.txt

Would like to check if it is a location and check and provide an
alternate if not found there.

Any help would be greatly appreciated.

Thanks
 
If Dir(filename) > "" Then
' import your file or whatever
Else
' messagebox or whatever
End if
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top