Sort with a range - R1C1 reference type!

Post Reply
wwj
Posts: 2497
Joined: 27 Jan 2007 08:16

Sort with a range - R1C1 reference type!

Post by wwj »

Code: Select all


    Sheets(outSht).Select
    Sheets(outSht).Activate
    totalRow = ActiveSheet.Cells(Rows.Count, 1).End(xlUp).Row
    
    ' Sort by Drain Q
    ActiveSheet.Range(Cells(2, 1), Cells(outRow, 11)).Sort  _
         Key1:=Cells(1, 11), Order1:=xlDescending  
                
Post Reply