Muokkaa

Jaa


Selection.SortByHeadings method (Word)

Sorts the headings in the specified selection.

Syntax

expression.SortByHeadings (SortFieldType, SortOrder, CaseSensitive, BidiSort, IgnoreThe, IgnoreKashida, IgnoreDiacritics, IgnoreHe, LanguageID)

expression A variable that represents a Selection object.

Parameters

Name Required/Optional Data type Description
SortFieldType Optional Variant The sort field type to use. Can be one of the WdSortFieldType constants. The default value is wdSortFieldAlphanumeric. Depending on the language support (U.S. English, for example) that you have selected or installed, some of these constants may not be available to you.
SortOrder Optional Variant The sorting order to use. Can be one of the WdSortOrder constants.
CaseSensitive Optional Variant True to sort with case sensitivity. The default value is False.
BidiSort Optional Variant True to sort based on right-to-left language rules. Depending on the language support (U.S. English, for example) that you have selected or installed, this parameter may not be available to you.
IgnoreThe Optional Variant True to ignore the Arabic character alef lam when sorting right-to-left language text. Depending on the language support (U.S. English, for example) that you have selected or installed, this parameter may not be available to you.
IgnoreKashida Optional Variant True to ignore kashidas when sorting right-to-left language text. Depending on the language support (U.S. English, for example) that you have selected or installed, this parameter may not be available to you.
IgnoreDiacritics Optional Variant True to ignore bidirectional control characters when sorting right-to-left language text. Depending on the language support (U.S. English, for example) that you have selected or installed, this parameter may not be available to you.
IgnoreHe Optional Variant True to ignore the Hebrew character he when sorting right-to-left language text. Depending on the language support (U.S. English, for example) that you have selected or installed, this parameter may not be available to you.
LanguageID Optional Variant Specifies the sorting language. Can be one of the WdLanguageID constants.

Return value

VOID

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.