My theory to use an array does not work. However if you use VBA to do a sort based on a custom list you can use a list > 255 characters. I have put together a sample workbook as proof of concept.
I have placed a list into an array which is not necessary to do this sort - I only did it to verify the custom list > 255 characters. It also demonstrates how to create an array. If you place the entire custom list into a Custom List VBA sort then you can use a list > 255 characters - you just cannot do it via the excel interface of creating the custom list.
Just for your information the array created above only has one item in the array - namely testStr(0)
To create a one dimensional array with multiple items in the array it is a little different - again this is just to answer your question about creating arrays however as I say creating an array is NOT required to do a sort with a Custom List. The following code is for your edification only
In the VB editor in the Immediate window you will see the output showing the values of each item in this one dimensional array.
Bookmarks