Skip to content

Latest commit

 

History

History
50 lines (30 loc) · 1.11 KB

Excel.Application.DeleteCustomList.md

File metadata and controls

50 lines (30 loc) · 1.11 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Application.DeleteCustomList method (Excel)
vbaxl10.chm133117
vbaxl10.chm133117
Excel.Application.DeleteCustomList
41a936f7-05b5-520f-f5c5-172a5ea124d9
04/04/2019
medium

Application.DeleteCustomList method (Excel)

Deletes a custom list.

Syntax

expression.DeleteCustomList (ListNum)

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
ListNum Required Long 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.

Example

This example deletes a custom list.

n = Application.GetCustomListNum(Array("cogs", "sprockets", _ 
 "widgets", "gizmos")) 
Application.DeleteCustomList n

[!includeSupport and feedback]