Skip to content

Latest commit

 

History

History
56 lines (32 loc) · 1.08 KB

Excel.Application.GetCustomListNum.md

File metadata and controls

56 lines (32 loc) · 1.08 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Application.GetCustomListNum method (Excel)
vbaxl10.chm133141
vbaxl10.chm133141
Excel.Application.GetCustomListNum
c4a97a96-333a-1021-7324-5cca4f0d9f3c
04/04/2019
medium

Application.GetCustomListNum method (Excel)

Returns the custom list number for an array of strings. Use this method to match both built-in lists and custom-defined lists.

Syntax

expression.GetCustomListNum (ListArray)

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
ListArray Required Variant An array of strings.

Return value

Long

Remarks

This method generates an error if there's no corresponding list.

Example

This example deletes a custom list.

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

[!includeSupport and feedback]