View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Peter Rooney
 
Posts: n/a
Default does a file exist

Arien,

Here's some code I use to delete a dummy file from the C drive - I'm sure
you can adapt it to your needs.

Regards & happy New Year

Pete

If Dir("C:\Holidays+Training+Sickness Chart.xls") < "" Then
Kill "C:\Holidays+Training+Sickness Chart.xls"
End If

"Arien" wrote:


I would like to make a True/False statement in an excel-formula that
checks
if a certain file exists on the harddisk or not.
There must be some kind of VBA statement for that.

Please let me know if you can help me. Thanks.

Arien de Haan
Eindhoven, NL


--
Arien
------------------------------------------------------------------------
Arien's Profile: http://www.excelforum.com/member.php...fo&userid=1892
View this thread: http://www.excelforum.com/showthread...hreadid=497521