How to quickly delete multiple sheets in Excel
The sheet deletion operation basically just press Delete to delete. However, if you need to delete multiple sheets then the traditional way of deleting each sheet is relatively time-consuming and unprofessional. The following article will guide you to read 2 ways to delete multiple sheets in Excel.
1. How to delete multiple Excel sheets by Ctrl
To delete a sheet in Excel , just right-click on the sheet you want to delete and select Delete .
If you want to delete multiple sheets at the same time , we press and hold the Ctrl key, then click the sheets you want to delete, right-click and choose Delete .
Alternatively, you can also right-click a sheet and select Select All Sheets to select all the sheets .
Hold down the Ctrl key and click on the sheets you don't want to delete , and then press Delete to delete the rest.
Instructions for deleting multiple Excel sheets with Macros code
Besides the traditional delete Excel sheet above, we can also use Macros to delete multiple sheets at once.
Step 1:
You do not want to separate the sheet names you want to delete from other sheets. Then press Alt + F11 to launch Microsoft Visual Basic for Applications. Then click Insert> Module .
Step 2:
Next you enter the code below into the interface.
Public Sub Test() Application.DisplayAlerts = False Dim Ws As Worksheet For Each Ws In Worksheets If Ws.Name <> "Test" Then Ws.Delete Next Ws Application.DisplayAlerts = True End Sub
Here Test is the sheet you want to keep in the Excel table.
Step 3:
Continue to click Run to run the code in Excel.
Resulting all sheets in the data file have been deleted, except for the Test sheet that we entered in the code.
You should read it
- How to print multiple sheets in Excel
- Tricks using Google Sheets should not be ignored
- 5 reasons you should give up Excel and start using Google Sheets
- How to convert Excel file to Google Sheets
- List of common shortcuts for Google Sheets on Chrome OS (Part 3)
- How to add rows and delete rows in Excel
- 30+ useful Google Sheets functions
- How to merge multiple sheets into 1 PDF file in Excel 2013
May be interested
- Tricks using Google Sheets should not be ignoredgoogle sheets is now considered an online version of microsoft excel and is widely used by many people. we can conduct online data storage, perform calculations like when used with excel.
- 5 reasons you should give up Excel and start using Google Sheetsgoogle sheets is a spreadsheet web application that works as part of the google docs toolkit. google sheets was released in 2006, nearly two decades after the first release of microsoft excel.
- How to count on multiple sheets of Google Sheetsto sum a cell or region on multiple sheets on google sheets, users will still use the sum function.
- How to convert Excel file to Google Sheetsto convert excel file to google sheets in the same format, users can download excel file to google drive or import excel file into existing google sheets file.
- How to Export Airtable to Excel and Google Sheetsairtable lets you create and share relational databases easily. export your airtable data to google sheets or excel to enjoy the benefits of advanced charts and data visualization.
- Create a table of contents for a list of worksheets in Excelyour excel spreadsheet has many sheets, you want to manage them in the most scientific way so they can quickly open when needed. to manage the sheets quickly and easily, you need to create a table of contents of the list of sheets in the excel file.
- Instructions for adding more Sheets and spreadsheets in Excelin excel, adding sheets and spreadsheets expands your data management capabilities. here are simple, effective instructions to help users get up and running quickly.
- Quickly insert multiple images at once in Exceltoday dexterity software will guide you how to quickly insert rows of images at once in excel with the tool ablebit for excel.
- How to hide and show sheets on Google Sheetswe can hide multiple sheets at once or hide sheets according to our needs. after completely hiding google sheets sheets, the sheet can be shown again with simple operations.
- Instructions on how to delete gridlines in Excelinstructions on how to delete gridlines in excel. the excel interface is a spreadsheet with extended rows and columns. normally in an excel table presentation, you will want to remove the lines that are outside your worksheet array but don't know how to do it quickly.