SpellingSuggestion Object

Description

Represents a single spelling suggestion for a misspelled word. The SpellingSuggestion object is a member of the SpellingSuggestions collection. The SpellingSuggestions collection includes all the suggestions for a specified word or for the first word in the specified range.

Using the SpellingSuggestion Object

Use GetSpellingSuggestions(index), where index is the index number, to return a single SpellingSuggestion object. The following example checks to see whether there are any spelling suggestions for the first word in the active document. If there are, the first suggestion is displayed in a message box.

If ActiveDocument.Words(1).GetSpellingSuggestions.Count <> 0 Then
    MsgBox ActiveDocument.Words(1).GetSpellingSuggestions(1).Name
EndIf
Remarks

The Count property for the SpellingSuggestions object returns 0 (zero) if the word is spelled correctly or if there are no suggestions.

Properties

Application property, Creator property, Name property, Parent property.

See Also

GetSpellingSuggestions method.