View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
havocdragon havocdragon is offline
external usenet poster
 
Posts: 75
Default Find an existing file.

I think this is what you are looking for. The "C:\temp\Test.xls" is just an
example, but this is where you put the file path and name to be deleted.

Dim objFSO As Object
Dim strpath As String

Set objFSO = CreateObject("Scripting.FileSystemObject")
strpath = "C:\Temp\test.xls"

If objFSO.FileExists(strpath) Then
objFSO.DeleteFile strpath, True
End If


"கற்பகம்" wrote:

Hi Group.

A downloaded new application.mde must check for an existing
application.mde with the same name, and import its data into the
downloaded one, and delete the existing version.

Any code samples, suggestions.

Thanks.
Karpagam Elangovan