Range.CheckSpelling Method (Word)

Begins a spelling check for the specified document or range.

Syntax

expression. CheckSpelling( _CustomDictionary_ , _IgnoreUppercase_ , _AlwaysSuggest_ , _CustomDictionary2_ , _CustomDictionary3_ , _CustomDictionary4_ , _CustomDictionary5_ , _CustomDictionary6_ , _CustomDictionary7_ , _CustomDictionary8_ , _CustomDictionary9_ , _CustomDictionary10_ )

expression Required. A variable that represents a 'Range' object.

Parameters

Name Required/Optional Data type Description
CustomDictionary Optional Variant Either an expression that returns a Dictionary object or the file name of the custom dictionary.
IgnoreUppercase Optional Variant True if capitalization is ignored. If this argument is omitted, the current value of the IgnoreUppercase property is used.
AlwaysSuggest Optional Variant True for Microsoft Word to always suggest alternative spellings. If this argument is omitted, the current value of the SuggestSpellingCorrections property is used.
CustomDictionary2 Optional Either an expression that returns a Dictionary object or the file name of the custom dictionary. You can specify as many as nine additional dictionaries.
CustomDictionary3 Optional Either an expression that returns a Dictionary object or the file name of the custom dictionary. You can specify as many as nine additional dictionaries.
CustomDictionary4 Optional Either an expression that returns a Dictionary object or the file name of the custom dictionary. You can specify as many as nine additional dictionaries.
CustomDictionary5 Optional Either an expression that returns a Dictionary object or the file name of the custom dictionary. You can specify as many as nine additional dictionaries.
CustomDictionary6 Optional Either an expression that returns a Dictionary object or the file name of the custom dictionary. You can specify as many as nine additional dictionaries.
CustomDictionary7 Optional Either an expression that returns a Dictionary object or the file name of the custom dictionary. You can specify as many as nine additional dictionaries.
CustomDictionary8 Optional Either an expression that returns a Dictionary object or the file name of the custom dictionary. You can specify as many as nine additional dictionaries.
CustomDictionary9 Optional Either an expression that returns a Dictionary object or the file name of the custom dictionary. You can specify as many as nine additional dictionaries.
CustomDictionary10 Optional Either an expression that returns a Dictionary object or the file name of the custom dictionary. You can specify as many as nine additional dictionaries.

Remarks

If the document or range contains errors, this method displays the Spelling and Grammar dialog box, with the Check grammar check box cleared.

Example

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

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

See also

Range Object