SpellingSuggestions object (Word)

A collection of SpellingSuggestion objects that represent all the suggestions for a specified word or for the first word in the specified range.


Use the GetSpellingSuggestions method to return the SpellingSuggestions collection. The SpellingSuggestions method, when applied to the Application object, must specify the word to be checked. When the GetSpellingSuggestions method is applied to a range, the first word in the range is checked. The following example checks to see whether there are any spelling suggestions for any of the words in the active document. If there are, the suggestions are displayed in message boxes.

For Each wd In ActiveDocument.Words 
 Set sugg = wd.GetSpellingSuggestions 
 If sugg.Count <> 0 Then 
 For Each ss In sugg 
 MsgBox ss.Name 
 Next ss 
 End If 
Next wd

You cannot add suggestions to or remove suggestions from the collection of spelling suggestions. Spelling suggestions are derived from main and custom dictionary files.

See also

Word Object Model Reference

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.