Range.GetSpellingSuggestions (Word)

Returns a SpellingSuggestions collection that represents the words suggested as spelling replacements for the first word in the specified range.

If the word is spelled correctly, the Count property of the SpellingSuggestions object returns 0 (zero).

GetSpellingSuggestions (CustomDictionary, IgnoreUppercase, MainDictionary, SuggestionMode, CustomDictionary2, CustomDictionary3, CustomDictionary4, CustomDictionary5, CustomDictionary6, CustomDictionary7, CustomDictionary8, CustomDictionary9, CustomDictionary10)


If Selection.Range.GetSpellingSuggestions.Count = 0 Then 
 Msgbox "No suggestions." 
Else 
 Selection.Range.CheckSpelling 
End If

Arguments

Optional arguments

The following arguments are optional

CustomDictionary (Dictionary) - Either an expression that returns a Dictionary object or the file name of the custom dictionary.

IgnoreUppercase (Boolean) - True to ignore words in all uppercase letters. If this argument is omitted, the current value of the IgnoreUppercase property is used.

MainDictionary (Dictionary) - Either an expression that returns a Dictionary object or the file name of the main dictionary. If you don't specify a main dictionary, Microsoft Word uses the main dictionary that corresponds to the language formatting of the first word in the range.

SuggestionMode (WdSpellingWordType) - Specifies the way Word makes spelling suggestions. Can be one of the following WdSpellingWordType constants. The default value is wdSpellword.

Possible return values are wdAnagram - Anagram searching, wdSpellword - Spellword searching, wdWildcard - Wildcard searching.

CustomDictionary2 - String

CustomDictionary3 - String

CustomDictionary4 - String

CustomDictionary5 - String

CustomDictionary6 - String

CustomDictionary7 - String

CustomDictionary8 - String

CustomDictionary9 - String

CustomDictionary10 (Dictionary) - Either an expression that returns a Dictionary object or the file name of an additional custom dictionary. You can specify as many as nine additional dictionaries.