sort like Excel "expanding sort"

Questions and answers on how to use XLSReadWriteII 5.
Post Reply
kindman
Posts: 2
Joined: Thu Nov 14, 2019 1:11 pm

sort like Excel "expanding sort"

Post by kindman »

Hey, good time
Is it possible to expanding sort in columns? (XLSReadWrite) Because sorting the column will only sort the same column, not adjacent rows
How to sort like expanding sort Excel?
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: sort like Excel "expanding sort"

Post by larsa »

Hello

Yes, you can do do. Use:
Sort(ACol1, ARow1, ACol2, ARow2: integer; const AAscending,ACaseSencitive: boolean);

Example:
XLS[0].Sort(0,0,1,9,True,False);
Lars Arvidsson, Axolot Data
kindman
Posts: 2
Joined: Thu Nov 14, 2019 1:11 pm

Re: sort like Excel "expanding sort"

Post by kindman »

Thanks for the post but if we want to sort by column 1 to row 9 but columns after column 1 will not be moved accordingly (if sort by column 1)...
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: sort like Excel "expanding sort"

Post by larsa »

Hello

Do you have an example on how to do this sort? You can send me an Excel file with before and after sorting.
Lars Arvidsson, Axolot Data
Post Reply