Skip to content

Latest commit

 

History

History
53 lines (31 loc) · 1.71 KB

Word.Document.CheckSpelling.md

File metadata and controls

53 lines (31 loc) · 1.71 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Document.CheckSpelling method (Word)
vbawd10.chm158007428
vbawd10.chm158007428
Word.Document.CheckSpelling
a61a9c8b-0dee-f6e4-cefc-daca612c99c1
06/08/2017
medium

Document.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 Document object.

Parameters

Name Required/Optional Data type Description
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.

Remarks

If the document or range contains errors, this method displays the Spelling and Grammar dialog box (Tools menu), with the Check grammar check box cleared. For a document, this method checks all available stories (such as headers, footers, and text boxes).

Example

The following example checks the spelling in the active document.

ActiveDocument.CheckSpelling

See also

Document Object

[!includeSupport and feedback]