Dictionaries.Maximum Property (Word)

Returns the maximum number of custom or conversion dictionaries allowed. Read-only Long.

Syntax

expression .Maximum

expression Required. A variable that represents a Dictionaries collection.

Example

This example displays a message if the number of custom dictionaries is equal to the maximum number allowed. If the maximum number has not been reached, a custom dictionary named "MyDictionary.dic" is added.

If CustomDictionaries.Count = CustomDictionaries.Maximum Then 
 MsgBox "Cannot add another dictionary file" 
Else 
 CustomDictionaries.Add "MyDictionary.dic" 
End If

See Also

Concepts

Dictionaries Object Members

Dictionaries Collection Object