So I am looking at fixing some old code written by an unknown author from who knows when... It applies a custom sort.
There is this suspect looking comment to me and it is the truncation causing me problems (truncated items yield duplicates)...
Any experts on here have an opinion if this is necessary or it was with version X but good starting with version Y thoughts?
Below is a snippet of what is being done...
Some of my findings...
Custom lists are stored in the registry...
Size Limits of registry elements...
<
I just have another priority come up to keep from digging so if anyone knows and can save me some hassle it would be much appreciated.
There is this suspect looking comment to me and it is the truncation causing me problems (truncated items yield duplicates)...
Any experts on here have an opinion if this is necessary or it was with version X but good starting with version Y thoughts?
Below is a snippet of what is being done...
Code:
'Excel has a custom list length limit -- roughly 1600 characters, hence the truncation
Application.AddCustomList ListArray:=sCustomList 'sCustomList is built by looping and truncating elements in a range based on a truncated element size of 1600/n
oWorksheet.Sort.SortFields.clear
oRangeSort.Sort Key1:=oRangeKey, Order1:=xlAscending, Header:=xlYes, _
OrderCustom:=Application.CustomListCount + 1, MatchCase:=False, _
Orientation:=xlTopToBottom, DataOption1:=xlSortNormal
Some of my findings...
Custom lists are stored in the registry...
Size Limits of registry elements...
<
I just have another priority come up to keep from digging so if anyone knows and can save me some hassle it would be much appreciated.