Share via


Range.CheckSpelling Method

Checks the spelling of an object.

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

Syntax

'Declaration
Function CheckSpelling ( _
    CustomDictionary As Object, _
    IgnoreUppercase As Object, _
    AlwaysSuggest As Object, _
    SpellLang As Object _
) As Object
'Usage
Dim instance As Range
Dim CustomDictionary As Object
Dim IgnoreUppercase As Object
Dim AlwaysSuggest As Object
Dim SpellLang As Object
Dim returnValue As Object

returnValue = instance.CheckSpelling(CustomDictionary, _
    IgnoreUppercase, AlwaysSuggest, _
    SpellLang)
Object CheckSpelling(
    Object CustomDictionary,
    Object IgnoreUppercase,
    Object AlwaysSuggest,
    Object SpellLang
)

Parameters

  • 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.

  • AlwaysSuggest
    Type: System.Object

    Optional Object. True to have Microsoft Excel display a list of suggested alternate spellings when an incorrect spelling is found; False to have Microsoft Excel pause while you input the correct spelling. If this argument is omitted, the current setting will be used.

  • SpellLang
    Type: System.Object

    Optional Object. The language of the dictionary being used. Can be one of the MsoLanguageID values used by the LanguageID property.

Return Value

Type: System.Object

Remarks

This method has no return value; Microsoft Excel displays the Spelling dialog box.

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.

See Also

Reference

Range Interface

Range Members

Microsoft.Office.Interop.Excel Namespace