_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.StringRequired String. The word you want to check.
CustomDictionary
Type: System.ObjectOptional 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.ObjectOptional 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