ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   DELETE AN EXCEL WORKBOOK (https://www.excelbanter.com/excel-discussion-misc-queries/251850-delete-excel-workbook.html)

dmhehir

DELETE AN EXCEL WORKBOOK
 
How does one Delete an Entire Workbook as opposed to a Worksheet
--
Don

macropod[_2_]

DELETE AN EXCEL WORKBOOK
 
Hi Don,

You could select the file using:
.. File|Open from within Excel; or
.. Windows Explorer,
and press the delete button ...

--
Cheers
macropod
[Microsoft MVP - Word]


"dmhehir" wrote in message ...
How does one Delete an Entire Workbook as opposed to a Worksheet
--
Don


FSt1

DELETE AN EXCEL WORKBOOK
 
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.

regards
FSt1

"dmhehir" wrote:

How does one Delete an Entire Workbook as opposed to a Worksheet
--
Don


dmhehir

DELETE AN EXCEL WORKBOOK
 
Thanks - Worked like a charm
--
Don


"FSt1" wrote:

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.

regards
FSt1

"dmhehir" wrote:

How does one Delete an Entire Workbook as opposed to a Worksheet
--
Don


Don Guillett

DELETE AN EXCEL WORKBOOK
 
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


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"dmhehir" wrote in message
...
How does one Delete an Entire Workbook as opposed to a Worksheet
--
Don




All times are GMT +1. The time now is 05:15 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com