sortcells
Sort a cell range.
Syntax
Section titled “Syntax”sortcells(cr)sortcells(cr, sort_options...)Description
Section titled “Description”Sorts the cells in cr using the active worksheet’s default sort criterion. Trailing string arguments customize the sort:
- A
eSortOnTypevalue ('Value','Color','Icon', etc.) selects the sort key - A
eSortingOrdervalue ('Ascending'/'Descending') sets direction 'CaseSensitive'/'CaseInsensitive'controls string-comparison case
Examples
Section titled “Examples”sortcells(A1:A100)sortcells(A1:A100, 'Descending', 'CaseInsensitive')