Class SpellingSuggestion (Word VBA)

The class SpellingSuggestion 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. To use a SpellingSuggestion class variable it first needs to be instantiated, for example


Dim ssn as SpellingSuggestion
Set ssn = GetSpellingSuggestions(Index:=1)

For Each

Here is an example of processing the SpellingSuggestion items in a collection.


Dim strWord As String: strWord = 
Dim ssnGetSpellingSuggestion As SpellingSuggestion
For Each ssnGetSpellingSuggestion In GetSpellingSuggestions(Word:=strWord)
	
Next ssnGetSpellingSuggestion

Name

Returns the name of the specified object.


Dim strName As String
strName = GetSpellingSuggestions(1).Name