_Application.DeleteCustomList Method
Deletes a custom list.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Sub DeleteCustomList ( _
ListNum As Integer _
)
'Usage
Dim instance As _Application
Dim ListNum As Integer
instance.DeleteCustomList(ListNum)
void DeleteCustomList(
int ListNum
)
Parameters
ListNum
Type: System.Int32Required Integer. The custom list number. This number must be greater than or equal to 5 (Microsoft Excel has four built-in custom lists that cannot be deleted).
Remarks
This method generates an error if the list number is less than 5 or if there's no matching custom list.