SpellingErrorType Property

Applies To

SpellingSuggestions collection object.

Description

Returns the spelling error type. Can be one of the following WdSpellingErrorType constants: wdSpellingCapitalization, wdSpellingCorrect, or wdSpellingNotInDictionary. Read-only Long.

Note Use the GetSpellingSuggestions method to return a collection of words suggested as spelling replacements. If a word is misspelled, the CheckSpelling method returns True.

See Also

CheckSpelling method, GetSpellingSuggestions method.

Example

If the first word in the active document isn't in the dictionary, this example displays "Unknown word" in the status bar.

Set suggs = ActiveDocument.Content.GetSpellingSuggestions
If suggs.SpellingErrorType = wdSpellingNotInDictionary Then
    StatusBar = "Unknown word"
End If