_Application.CheckSpelling Method

Checks the spelling of a single word. Returns True if the word is found in one of the dictionaries; returns False if the word isn't found.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Function CheckSpelling ( _
    Word As String, _
    CustomDictionary As Object, _
    IgnoreUppercase As Object _
) As Boolean
'Usage
Dim instance As _Application
Dim Word As String
Dim CustomDictionary As Object
Dim IgnoreUppercase As Object
Dim returnValue As Boolean

returnValue = instance.CheckSpelling(Word, _
    CustomDictionary, IgnoreUppercase)
bool CheckSpelling(
    string Word,
    Object CustomDictionary,
    Object IgnoreUppercase
)

Parameters

  • Word
    Type: System.String

    Required String. The word you want to check.

  • CustomDictionary
    Type: System.Object

    Optional Object. 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
    Type: System.Object

    Optional Object. 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

Type: System.Boolean

See Also

Reference

_Application Interface

_Application Members

Microsoft.Office.Interop.Excel Namespace