SpellingOptions.DictLang Property

Excel Developer Reference

Selects the dictionary language used when Microsoft Excel performs spelling checks. Read/write Long.

Syntax

expression.DictLang

expression   A variable that represents a SpellingOptions object.

Example

This example sets the Excel dictionary to use the English (United States) language.

Visual Basic for Applications
  Sub LanguageSpellCheck()
With Application.SpellingOptions
    .<strong>DictLang</strong> = 1033     ' United States English language number.
    .UserDict = "CUSTOM.DIC"
End With

End Sub

See Also