ToolsOptionsSpelling

Syntax

ToolsOptionsSpelling [.AlwaysSuggest = number] [, .SuggestFromMainDictOnly = number] [, .IgnoreAllCaps = number] [, .IgnoreMixedDigits = number] [, .ResetIgnoreAll] [, .Type = number] [, .CustomDictn = text] [, .AutomaticSpellChecking = number] [, .HideSpellingErrors = number] [, .RecheckDocument]

Remarks

Sets options for checking spelling in a document. The arguments for the ToolsOptionsSpelling statement correspond to the options on the Spelling tab in the Options dialog box (Tools menu).

Argument

Explanation

.AlwaysSuggest

If 1, always suggests a replacement spelling for each misspelled word.

.SuggestFromMainDictOnly

If 1, draws spelling suggestions from the main dictionary only.

.IgnoreAllCaps

If 1, ignores words in all capital letters.

.IgnoreMixedDigits

If 1, ignores words that contain numbers.

.ResetIgnoreAll

Resets the Ignore All list so that Word will not ignore words for which you chose Ignore All while checking spelling during the current Word session.

.Type

Type of dictionary being searched:

0 (zero) Normal

2 Complete

3 Medical

4 Legal

Note that if you specify 2, 3, or 4 and have not installed the corresponding dictionary, an error occurs. For information on how to purchase supplemental dictionaries, contact Microsoft Customer Service.

.CustomDictn

The path and filename of a custom dictionary to create or add; include a separate .CustomDictn argument for each custom dictionary, up to 10.


Argument

Explanation

.AutomaticSpellChecking

If 1, enables automatic checking for spelling in the current document.

This argument is available only in Word version 7.0.

.HideSpellingErrors

If 1, hides spelling error underlines in the active document.

This argument is available only in Word version 7.0.

.RecheckDocument

Rechecks the entire document for spelling errors. This ensures that words that have already been reviewed
and corrected are checked for spelling errors again.

This argument is available only in Word version 7.0.


Example

This example performs a spelling check in which words in all capital letters and words that contain numbers are not checked. The custom dictionary MYTERMS.DIC is used with the main dictionary. On the Macintosh, substitute a path such as HD:WORD:MY TERMS.


ToolsOptionsSpelling .IgnoreAllCaps = 1, .IgnoreMixedDigits = 1,\
        .Type = 0, .CustomDict1 = "C:\WINWORD\MYTERMS.DIC"
ToolsSpelling

See Also

DocumentHasMisspellings, NextMisspelling, ToolsSpelling, ToolsSpellSelection