Deleting a Workbook

  • Thread starter Thread starter MartyF
  • Start date Start date
M

MartyF

I have a spreadsheet that runs 10 scenarios and after each scenario
rename the workbook and save it.

Do you know a way to

1. Check to see if a workbook already exists in my work directory, and

2. If so, how can I delete it
 
MArty,

On Error Resume Next
Kill "C:\Folder Name\File to Delete.xls"

HTH,
Bernie
MS Excel MVP
 

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