Compartilhar via


Dictionaries.Maximum Property

Word Developer Reference

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.

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

See Also