Excel) (SpellingOptions.DictLang 属性

当 Microsoft Excel 执行拼写检查时,选择使用的词典语言。 读/写 Long。

语法

表达式。DictLang

表达式 表示 SpellingOptions 对象的变量。

示例

本示例将 Excel 词典设置为使用英语(美国)。

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

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。