Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA- file exists?

Status
Not open for further replies.

Ramy27

Technical User
Apr 26, 2005
63
GB
Does anyone know whether there is a way in VBA to check, if a file with a given name exists? (File name given as a string)

---------------------------------
Your help is much appreciated, R.
---------------------------------
 
Take a look at the Dir function.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
thanks. that helped.

---------------------------------
Your help is much appreciated, R.
---------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top