ActiveGrammarDictionary Property

Applies To

Language object.

Description

Returns a Dictionary object that represents the active grammar dictionary for the specified language. Read-only.

Remarks

If there's no grammar dictionary installed for the specified language, this property returns Nothing.

See Also

ActiveHyphenationDictionary property, ActiveSpellingDictionary property, ActiveThesaurusDictionary property, Languages property.

Example

This example displays the full path and file name of the active grammar dictionary.

myLang = Selection.LanguageID
Set myGram = Languages(myLang).ActiveGrammarDictionary
MsgBox myGram.Path & Application.PathSeparator & myGram.Name