Index.IndexLanguage property (Word)

Returns or sets a WdLanguageID constant that represents the sorting language to use for the specified index. Read/write .

Syntax

expression.IndexLanguage

expression Required. An expression that returns an 'Index' object.

Remarks

Some of the WdLanguageID constants may not be available to you, depending on the language support (U.S. English, for example) that you've selected or installed.

Example

This example sets the sorting language of the first index in the active document to New Zealand English.

ActiveDocument.Indexes(1).IndexLanguage = _ 
 wdEnglishNewZealand

See also

Index Object

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.