Deleting a temp file.


Posted by Mark Gravelle on November 15, 2001 7:43 AM

I have created a program that will rename 2 workbooks to a temp directory on "c:\temp\xxxtemp.xls".

What code do I write to delete the 2 files from the temp directory?

Posted by Dank on November 15, 2001 8:42 AM

You can use the charmingly named Kill statement.

Kill "C:\temp\xxxtemp.xls"

Regards,
Daniel.



Posted by Mark Gravelle on November 15, 2001 9:05 AM

Thanks Daniel!