deleting a file programmatically

  • Thread starter Thread starter Klaus Iden
  • Start date Start date
K

Klaus Iden

I need to delete a temporary workbook after I'm finished
with it and can't remember how to do it.
Help!
 
Hi Klaus,
I need to delete a temporary workbook after I'm finished
with it and can't remember how to do it.

If it is a file:

Kill "c:\whateverPath\WhateverWorkbook.xls"

Otherwise:

Workbooks("WhateverWorkbook.xls").Close SaveChanges:=False

Regards,

Jan Karel Pieterse
Excel MVP
www.jkp-ads.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top