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

Dictionaries Collection Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.