ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Custom List Number (https://www.excelbanter.com/excel-programming/279732-custom-list-number.html)

scott[_6_]

Custom List Number
 
I created a macro that adds a custom list to a user's computer.
Another part of the spreadhseet references the list by a number:

(election.Sort Order1:=xlAscending, Type:=xlSortLabels,
OrderCustom:=6, _
Orientation:=xlTopToBottom).

Does anyone know how to grap the custom list number after it is
entered so i can put it into a variable. I am afriad that list #6 for
example may not be the same for everyone else. Thanks.

-Scott

Tom Ogilvy

Custom List Number
 
On way would be to loop through the list and examine each list while
maintaining the count. When you find yours, store the number.

--
Regards,
Tom Ogilvy

"scott" wrote in message
om...
I created a macro that adds a custom list to a user's computer.
Another part of the spreadhseet references the list by a number:

(election.Sort Order1:=xlAscending, Type:=xlSortLabels,
OrderCustom:=6, _
Orientation:=xlTopToBottom).

Does anyone know how to grap the custom list number after it is
entered so i can put it into a variable. I am afriad that list #6 for
example may not be the same for everyone else. Thanks.

-Scott





All times are GMT +1. The time now is 12:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com