ActiveSpellingDictionary 属性

       

该属性返回一个 Dictionary 对象,该对象代表指定语言的活动拼写词典。

expression.ActiveSpellingDictionary

expression   必需。该表达式返回一个 Language 对象。

说明

如果没有安装指定语言的拼写词典,则该属性返回 Nothing

示例

本示例返回活动拼写词典的完整路径和文件名。

Dim lngLanguage As Long
Dim dicSpelling As Dictionary

lngLanguage = Selection.LanguageID
Set dicSpelling = Languages(lngLanguage).ActiveSpellingDictionary
If dicSpelling Is Nothing Then
    MsgBox "No spelling dictionary installed!"
Else
    MsgBox dicSpelling.Path & Application.PathSeparator _
        & dicSpelling.Name
End If