_Worksheet.Delete Method

Deletes the object.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Sub Delete
'Usage
Dim instance As _Worksheet

instance.Delete()
void Delete()

Remarks

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

See Also

Reference

_Worksheet Interface

_Worksheet Members

Microsoft.Office.Interop.Excel Namespace