Sort Sheet

Sort sheet rows by a 1-based column (optionally keep a header row).

ExcelExcelSort

What it does

Sort sheet rows by a 1-based column (optionally keep a header row).

Parameters

ParameterTypeRequiredDefaultDescription
Excel instancevariable
RequiredexcelName that identifies this open workbook.
Sheet (blank = active)string
OptionalWorksheet name; blank uses the active sheet.
Supports variables
Column (1-based)number
Required
Example: 1
Supports variables
Directiondropdown
Ascending · Descending
RequiredAscending
First row is headerdropdown
Yes · No
RequiredYes

More Excel commands

Ready to automate your busywork?

Start your free 10-day trial today. No credit card, no commitment.