Name
Application.AddCustomList(ListArray, [ByRow])
Synopsis
Creates a new automatic list based on an array or a range of cells.
|
Argument |
Setting |
|---|---|
|
|
The array or range of cells containing the items for the list. |
|
|
True creates the list from rows in a range; False creates the list from columns in the range. Ignored if |
The first item in each list must be unique. An error occurs if a list with an identical first item already exists. The following code creates a new custom list from a range on the active worksheet:
Sub TestCustomList( )
Application.AddCustomList [a1:a10]
End SubTo see the new list, choose Tools → Options → Custom Lists.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access