Hi Jolivanes,
Yes, your programme works for the 1st sorting only, 1st key: Column("M") descending, 2nd Key: Column("N") descending
But does work for the next sorting 1st key change to: Column("N") descending, 2nd Key: Column("M") descending
After the 1st sorting, I need to fill numbering in column("O") which defined as follow
Range("O2").FormulaR1C1 = "1"
Range("O3").FormulaR1C1 = "2"
Range("O2:O3").AutoFill Destination:=Range("O2:O" & Range("I" & Rows.Count).End(xlUp).ROW)
Then, after the 2nd sorting, I need to fill numbering in column("O") which defined as follow
Range("P2").FormulaR1C1 = "1"
Range("P3").FormulaR1C1 = "2"
Range("P2:P3").AutoFill Destination:=Range("P2:P" & Range("I" & Rows.Count).End(xlUp).ROW)
I attached herewith my working files for your verification. you can run my programme sub_sort() to see what happened
Thanks for willing to assist me. really appreaciate.
Regards,
Farid
Bookmarks