Worksheet.Delete method (Excel)

Deletes the object.

Syntax

expression.Delete

expression A variable that represents a Worksheet object.

Return value

Boolean

Remarks

When you delete a Worksheet object, this method displays a dialog box that prompts the user to confirm the deletion. This dialog box is displayed by default. When called on the Worksheet object, the Delete method returns a Boolean value that is False if the user chose Cancel on the dialog box, or True if the user chose Delete.

To delete a worksheet without displaying a dialog box, set the Application.DisplayAlerts property to False.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.