SpellingErrorType Property

Microsoft Word Visual Basic

Show All

SpellingErrorType Property

       

Returns the spelling error type. Read-only WdSpellingErrorType.

WdSpellingErrorType can be one of these WdSpellingErrorType constants.
wdSpellingCapitalization
wdSpellingCorrect
wdSpellingNotInDictionary

expression.SpellingErrorType

expression   Required. An expression that returns a SpellingSuggestions object.

Remarks

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

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