Sheets.Delete Method
Deleting a Worksheet Without Prompting the User
In the following Visual Basic example, you first turn off any messages asking if you want to save the worksheet. Next, you delete the worksheet and turn the alert message back on.
Sub SaveWorksheet() Application.DisplayAlerts = False ActiveSheet.Delete Application.DisplayAlerts = True End Sub
- 2/23/2009
- THendr2929
- 2/23/2009
- THendr2929