CheckSpelling Method Example

This example begins a spelling check on all available stories of the active document.

ActiveDocument.CheckSpelling

This example begins a spelling check on section two of MyDocument.doc. The spelling check includes words in all uppercase letters, and it checks words against two custom dictionaries as well as the main dictionary.

Set range2 = Documents("MyDocument.doc").Sections(2).Range
range2.CheckSpelling IgnoreUpperCase:=False, _
    CustomDictionary:="MyWork.Dic", _
    CustomDictionary2:="MyTechnical.Dic"

This example begins a spelling check on the selection.

Selection.Range.CheckSpelling

This example displays the result of a spelling check on the selection.

pass = Application.CheckSpelling(Word:=Selection.Text)
MsgBox "Selection has no spelling errors: " & pass