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!

Check that a file exists

Status
Not open for further replies.

mrfritz44

MIS
Nov 21, 2003
75
US
I have a macro running whose first task is to delete a previous version of a file. If for some reason that file is not there, the macro bombs. What would the syntax be to wrap an "If" statement around this delete operation so that this does not happen?

Thanks,

Fred
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top