Add Method (Dictionaries Collection)

See Also         Example         Applies To

Adds the dictionary specified by FileName to the collection of active custom spelling dictionaries. If a file with the name specified by FileName doesn't exist, Word creates one.

Syntax

expression.Add(FileName)

expression   Required. An expression that returns a Dictionaries object. Use the CustomDictionaries property to return the collection of custom spelling dictionaries.

FileName   Required String. The string name of the dictionary file. If no path is specified in the string, the proofing tools path is used.

Remarks

The Dictionaries collection includes only the active custom spelling dictionaries. Dictionary objects that are derived from the Languages collection don't have an Add method. These include the Dictionary objects returned by the ActiveSpellingDictionary, ActiveGrammarDictionary, ActiveThesaurusDictionary, and ActiveHyphenationDictionary properties.