View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Rick Rothstein \(MVP - VB\)[_2096_] Rick Rothstein \(MVP - VB\)[_2096_] is offline
external usenet poster
 
Posts: 1
Default If file exists then

If Len(Dir("C:\Parade\zzz.txt")) 0 Then ' File exists

Rick


"Curt" wrote in message
...
Want to check if file exists zzz.xxx if true call a macro KillFile if not
exit
Blanked out
Thanks
If ("C:\Parade\zzz.txt") Then
Call KillFile
Exit Sub
' Else
End If