hi
close the workbook. then in the file open dialog, select the file and hit
the delete key. you will be asked to confirm. click yes. file gone to recycle
bin.
hi
close the workbook. then in the file open dialog, select the file and hit
the delete key. you will be asked to confirm. click yes. file gone to recycle
bin.
Here is one I have assigned to a custom toolbar button
Sub KillActiveWorkbook()
With ActiveWorkbook
mb = .Name
.Close
End With
MyAnswer = MsgBox("Do you want to KILL this file?", vbYesNo)
If MyAnswer = vbYes Then Kill mb
End Sub
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.