Using a Shortcut to Delete a Sheet in Excel – 5 Examples

Example 1 – Using a Keyboard Shortcut to Delete a Sheet in Excel

1.1. Regular Keyboard Shortcut

To remove Sheet1:

Keyboard Shortcut to Delete a Sheet in Excel

  • Press ALT + H + D + S.
  • Click the Delete button.
  • Keyboard Shortcut to Delete a Sheet in Excel

Sheet1 is deleted.


1.2. Delete a Sheet using a Hybrid Keyboard Shortcut

To remove Sheet3.

  • Right-click the worksheet.
  • Press D.

Delete Sheet using a Hybrid Keyboard Shortcut

  •  Click Delete.

Keyboard Shortcut to Delete a Sheet in Excel

Sheet3 is deleted.


1.3. Using the Legacy Keyboard Shortcut to Delete a Sheet

To delete Sheet2.

  • Press Alt, E, and L one by one.
  • Click Delete.

Keyboard Shortcut to Delete a Sheet in Excel

Sheet2 is deleted.


Example 2 – Using an Excel Shortcut and Right-Clicking to Delete a Sheet 

To remove Sheet1.

 

  • Right-click the sheet.
  • Select Delete.

  • Click Delete.

Keyboard Shortcut to Delete a Sheet in Excel

Sheet1 is deleted.


Example 3 – Delete the ActiveSheet Using a Short VBA Code

  • Right-click the sheet and go to View Code.

Delete the ActiveSheet Using a Short VBA Code

  • Enter the VBA Code.

VBA Code:

Sub DeleteSheet()
ActiveSheet.Delete
End Sub

Delete the ActiveSheet Using a Short VBA Code

  • Run the code or press F5 to run the code.
  • Click Delete.

Keyboard Shortcut to Delete a Sheet in Excel

Sheet1 is deleted.

Read More: How to Delete Multiple Sheets in Excel


Example 4 – Using a  Shortcut and a VBA Code to Delete a Sheet by Name in Excel

  • Go to the Visual Basic editor by right-clicking the worksheet > Click View Code.

Shortcut VBA Code to Delete Sheet by Name in Excel

  • Enter the code.

VBA Code:

Sub DeleteSheetByName()
Sheets("Excel Sheet Name").Delete
End Sub

  • Press F5 and run the code.

Excel Sheet Name’ is deleted.


Example 5 – Delete All Sheets Except the Active Sheet using a VBA Code

  • Go to View Code by right-clicking the worksheet.

Delete All Sheets Except the Active Sheet by Short VBA Code

  • Enter the VBA code.

VBA Code:

Sub Delete_Sheet()
Dim s As Sheet
Application.DisplayAlerts = False
For Each s In Sheets
If s.Name <> ActiveSheet.Name Then
s.Delete
End If
Next s
Application.DisplayAlerts = True
End Sub

The VBA code deletes all the sheets except the active sheet.

Read More: How to Delete All Sheets Except One in Excel


Download Practice Workbook

Download the workbook.


 

Related Articles


<< Go Back to Delete Sheet | Worksheets | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Sabrina Ayon
Sabrina Ayon

Sabrina Ayon, a Computer Science and Engineering graduate from United International University, has been an integral part of the ExcelDemy project for two years. She authored 150+ articles, excelling in instructing through visually engaging Excel tutorials. With a passion for teaching, Sabrina conducted sessions on Excel VBA, sharing her knowledge and insights with others. Currently holding the position of Project Manager for the ExcelDemy Visual Development Project, she oversees various aspects of the project, ensuring its smooth operation... Read Full Bio

2 Comments
  1. Great tips! I never knew these shortcuts could save so much time when managing sheets in Excel. Thanks for sharing these examples!

    • Hello,

      You are most welcome. Thanks for your appreciation. Glad to hear that these shortcuts is saving your time while working in Excel. Keep exploring Excel with ExcelDemy!

      Regards
      ExcelDemy

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo