当 Microsoft Excel 执行拼写检查时,选择使用的词典语言。Long 类型,可读写。
expression.DictLang
expression 必需。该表达式返回“应用于”列表中的对象之一。
本示例将 Excel 词典设置为使用英语(美国英语)。
Sub LanguageSpellCheck()
With Application.SpellingOptions
.DictLang = 1033 ' United States English language number.
.UserDict = "CUSTOM.DIC"
End With
End Sub