Delete Sheet

Home Search Site Map

Up
Clear
Copy
Cut
Delete...
Delete Sheet
Fill
Find...
Go To...
Links...
Move or Copy Sheet...
Object
Office Clipboard...
Paste
Paste as Hyperlink
Paste Special...
Redo
Replace...
Undo

New! Excel User Group Now Open @ www.excelusergroup.org, Check It Out!


Menu command Type What happens next?
Delete Sheet  

This option deletes the entire sheet from the workbook. You will be asked to confirm the deletion, but this cannot be undone if you change your mind later! (See below).

Sub DeleteSheet()
'Deletes sheet but prompts for confirmation
'If this is not desired put
'Application.DisplayAlerts = False
Worksheets("Sheet1").Deletete
End Sub

Copyright Nick Hodge 2008. All Rights Reserved.