By using expertatexcel.com you agree to our cookie policy, We and our partners operate globally and use cookies, for multiple purposes

expertatexcel.com

 


ActiveWorkbook.worksheets("sfile1").sort.sortfields.Add Key:=Range("N2"), SortOn:=xlSortOnValues, order:=xlAscending, DataOption=xlSortTextAsNumbers

Recorded sorting logic

Sorting methods
  • Data > Sort Dialog
  • A - Z or Z - A sort
  • Sort via Filter
  • Sorting in Pivot tables

  •