Could anyone please help me with sorting a variant
var_a = activesheet.range("A3:AL" & lastrow ).value
var_a 1 column has some numbers
var_a 2 column has dates 2/22/2011 like these
var_a 3 column some other and so on
Now the entire variant var_a should be sorted in ascending order considering the column 2 that has dates
I know the way to do on the sheets but never worked on a variant , yes i can sort the sheet and then get the contents of the sheet into a var_a is one solution but sorting the sheet its taking 30 to 40 seconds which is undesired so i wanted to sort the variant instead of sheet.
Please help me with these Thanks
Niko,
Rather than implement a sort routine inside the variant you should use Excel’s native sorting for this. If you are struggling with your current file (I suggest you try sorting the current data with Manual Calculation first) then a workaround would be to