Application.CheckSpelling method (Excel)

Checks the spelling of a single word.

Syntax

expression.CheckSpelling (Word, CustomDictionary, IgnoreUppercase)

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
Word Required String (used only with the Application object). The word that you want to check.
CustomDictionary Optional Variant A string that indicates the file name of the custom dictionary to be examined if the word isn't found in the main dictionary. If this argument is omitted, the currently specified dictionary is used.
IgnoreUppercase Optional Variant True to have Microsoft Excel ignore words that are all uppercase. False to have Microsoft Excel check words that are all uppercase. If this argument is omitted, the current setting will be used.

Return value

True if the word is found in one of the dictionaries; otherwise, False.

Remarks

To check headers, footers, and objects on a worksheet, use this method on a Worksheet object.

To check only cells and notes, use this method with the object returned by the Cells property.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.