Applies To
Application Object.
Description
Returns the custom list number for an array of strings. Both built-in and custom defined lists can be matched using this method.
Syntax
object.GetCustomListNum(listArray)
object
Required. The Application object.
listArray
Required. An array of strings.
Remarks
This method generates an error if a corresponding list does not exist.
See Also
AddCustomList Method, CustomListCount Property, DeleteCustomList Method, GetCustomListContents Method.
Example
This example deletes a custom list.
n = Application.GetCustomListNum(Array("cogs", "sprockets", _ "widgets", "gizmos")) Application.DeleteCustomList n