View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Per Jessen Per Jessen is offline
external usenet poster
 
Posts: 1,533
Default How do I delete an xls file using a .xl macro in a different file?

Hi John

Look at the "Kill" statement in help.

Regards,
Per


"JHB" skrev i meddelelsen
...
I have an application where I am importing data from an .xls
file,manipulating it and saving it in a different file. From the
second file I need to create a macro that will delete the original
file! I need to do this because there is a seperate application
creating the feeder file, and if I create more than opne file it gets
stored with the count after it as in:

Feeder.xls
Feeder(1).xls
Feeder(2).xls etc

I know exactly where the file will be (in what folder and drive), I
just dont have a clue as to how to write a macro to remove it. I am
using Excel 2000.

Thanks in advance

John Baker