XlSortOrder Enumeration (Excel)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Specifies the sort order for the specified field or range.

Name

Value

Description

xlAscending

1

Sorts the specified field in ascending order. This is the default value.

xlDescending

2

Sorts the specified field in descending order.

Show: