Delete the active wb

  • Thread starter Thread starter Avassiliadi
  • Start date Start date
A

Avassiliadi

Hello all,
The last touch to my macro is to delete the log file from which I've
extracted the infromation and then saved as a text file.

Here is the command I use:

Sub DeleteOrigFile()


Workbooks(strCurrentOrigFileExt).Delete


End Sub

Do you need more info?

Thanks
 
Nevermind,
I've used Ron de Bruin command and it worked perfectly

Kill strOrigDir & strCurrentOrigFileExt

thanks Ron
 

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