How do you delete a file in Excel's VB?

  • Thread starter Thread starter tanast
  • Start date Start date
T

tanast

Not much more to ask than that.

Any help would be much appreciated.

Thanks

Tino
 
Tino,

Use the Kill command to permanently delete a file. For example,

Kill "C:\temp\book1.xls"

Note that Kill does not put the file in the Recycle Bin. To
delete a file to the Recycle Bin, see
www.cpearson.com/excel/recycle.htm .


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.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