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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

If document exists, stop

Status
Not open for further replies.

moontho

Technical User
Jun 4, 2003
85
GB
Me again.

One last thing. Using VBA I am opening a document in one directory and then saving it to another. I'm wanting to know if its possible for VBA to see if the document is already in the destination directory, and if it is... stop and say so.

Many thanks

thom
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top