Share via


Options.CheckSpellingAsYouType Property

Word Developer Reference

True if Microsoft Office Word checks spelling and marks errors automatically as you type. Read/write Boolean.

Syntax

expression.CheckSpellingAsYouType

expression   A variable that represents a Options object.

Remarks

This property marks spelling errors, but to see them on the screen, you must set the ShowSpellingErrors property to True.

Example

This example turns off automatic checking of spelling in Word.

Visual Basic for Applications
  Options.CheckSpellingAsYouType = False

This example sets Word to check for spelling errors as you type and to display any errors found in the active document.

Visual Basic for Applications
  Options.CheckSpellingAsYouType = True
ActiveDocument.ShowSpellingErrors = True

This example returns the status of the Check spelling as you type option on the Spelling & Grammar tab in the Options dialog box (Tools menu).

Visual Basic for Applications
  Dim blnCheck As Boolean

blnCheck = Options.CheckSpellingAsYouType

See Also