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

948 Steps to 6 Figures by Learning Excel-VBA and Other Skills



Step 892 - 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

  •    Table of Contents | Send us your feedback | © 2025 All Rights Reserved | Edit