Share via


DictLang Property [Excel 2003 VBA Language Reference]

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

expression.DictLang

expression Required. An expression that returns one of the objects in the Applies To list.

Example

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

Sub LanguageSpellCheck()

    With Application.SpellingOptions
        .DictLang = 1033     ' United States English language number.
        .UserDict = "CUSTOM.DIC"
    End With

End Sub

Applies to | SpellingOptions Object