Worksheet.CheckSpelling Method
Checks the spelling in a worksheet.
Namespace: Microsoft.Office.Tools.Excel
Assemblies: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)
Syntax
'Declaration
Sub CheckSpelling ( _
CustomDictionary As Object, _
IgnoreUppercase As Object, _
AlwaysSuggest As Object, _
SpellLang As Object _
)
void CheckSpelling(
Object CustomDictionary,
Object IgnoreUppercase,
Object AlwaysSuggest,
Object SpellLang
)
Parameters
CustomDictionary
Type: System.ObjectThe file name of the custom dictionary to be examined if the word is not found in the main dictionary. If this argument is omitted, the currently specified dictionary is used.
IgnoreUppercase
Type: System.Objecttrue to have Excel ignore words that are all uppercase; false to have Excel check words that are all uppercase. If this argument is omitted, the current setting will be used.
AlwaysSuggest
Type: System.Objecttrue to have Excel display a list of suggested alternate spellings when an incorrect spelling is found; false to have Excel wait for you to input the correct spelling. If this argument is omitted, the current setting will be used.
SpellLang
Type: System.ObjectThe language of the dictionary being used. Can be one of the MsoLanguageID values used by the LanguageID property.
Remarks
Use this method to check headers, footers, and objects on a worksheet.
Optional Parameters
For information on optional parameters, see Optional Parameters in Office Solutions.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.