Share via


UserDict Property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Instructs Microsoft Excel to create a custom dictionary to which new words can be added to, when performing spelling checks on a worksheet. Read/write String.

expression.UserDict

expression   Required. An expression that returns one of the objects in the Applies To list.

Example

This example instructs Microsoft Excel to create custom dictionary called "Custom1.dic" in the spelling options feature and notifies the user.

  Sub SpecialWord()

    Application.SpellingOptions.UserDict = "Custom1.dic"
    MsgBox "The custom dictionary is currently set to: " _
        & Application.SpellingOptions.UserDict

End Sub