Code:
Something like Code: eliWWell-known Member
Michael - great !!!
My Pleasure, and thanks for the feedback....
Code: Hey there Code:
to Code:
if you don't want a static sheet name.
That will work IF your activesheet is the "START" sheet, otherwise the START sheet will be deleted along with all the other non activesheets
Hey Guys
Ants
Michael, Nope, can never trust users. I guess you need to also take the whole macro into context as well. Another part may make the active sheet the one that you need to keep? I only meant to show that its possible. I can't help much on these boards as im still learning heaps but i'll share what i can. And in future, i will re-read my posts to make sure i have
everything in context. Ants While working in Microsoft Excel sometimes we need to delete all sheets from a workbook except one sheet or the active sheet. But doing it one by one is an irritating work. In that case, you can use some simple tricks to complete your task. Today in this article, I am sharing with you how to delete all sheets except one in Excel. Download Practice WorkbookDownload this practice workbook to exercise while you are reading this article. 2 Simple Methods to Delete All Sheets Except One in ExcelIn the following, I have described 2 simple and easy methods to delete all sheets except one in Excel. Suppose we have a workbook with multiple sheets- “Jan”, “Feb”, “Mar”, “Apr”, “May”, “Total Sales”. Now we will delete all sheets except the “Total Sales” sheet. Stay tuned! 1. Delete All Sheets Except One ManuallyThe simplest way to delete all sheets is by choosing them and using the sheet option. Follow the instructions below- Steps:
Read More: How to Delete Multiple Sheets in Excel (4 Ways) Similar Readings
2. VBA Code to Delete All Sheets Except One in ExcelYou can also use the VBA code to delete all sheets except one in Excel. This time we will keep the active sheet intact and delete the rest of the sheets. Steps:
VBA Explanation:
Read More: Excel VBA: Delete Same Sheet from Multiple Workbooks ConclusionIn this article, I have tried to cover all the methods to delete all sheets except one. Take a tour of the practice workbook and download the file to practice by yourself. I hope you find it helpful. Please inform us in the comment section about your experience. We, the ExcelDemy team, are always responsive to your queries. Stay tuned and keep learning. Related Articles
How do I delete multiple worksheets in Excel?Delete one or more worksheets. Select the worksheet or worksheets that you want to delete. Tip: When multiple worksheets are selected, [Group] appears in the title bar at the top of the worksheet. ... . On the Home tab, in the Cells group, click the arrow next to Delete, and then click Delete Sheet.. How do I delete multiple sheets in Excel using the keyboard?Steps to Delete Sheet Using Keyboard Shortcut. Go to the spreadsheet or select the multiple spreadsheets tabs together if you want to delete those selected sheets in one go.. After that, Press the “Alt → H → D → S” or “Alt → E → L” keys in a sequence and you will get the sheets deleted.. How do I delete multiple unhide sheets in Excel?Use the Document Inspector to Remove Hidden Data
To open the Document Inspector, click File > Info > Check for Issues > Inspect Document. The Excel Document Inspection window shown below opens up. Click Inspect to identify hidden content, and then click Remove All to remove the item of your choice.
How do you delete everything on sheets?To clear all contents, formats, and comments that are contained in the selected cells, click Clear All. To clear only the formats that are applied to the selected cells, click Clear Formats. To clear only the contents in the selected cells, leaving any formats and comments in place, click Clear Contents.
|