Share via


How to: Programmatically Check Spelling in Worksheets

You can programmatically check the spelling of words in a worksheet. The Spelling dialog box automatically appears if there are any incorrectly spelled words in the worksheet.

Applies to: The information in this topic applies to document-level projects and application-level projects for Excel 2013 and Excel 2010. For more information, see Features Available by Office Application and Project Type.

To check spelling in a worksheet in a document-level customization

  • Call the CheckSpelling method of the worksheet.

    Globals.Sheet1.CheckSpelling()
    
    Globals.Sheet1.CheckSpelling();
    

To check spelling in a worksheet in an application-level add-in

  • Call the CheckSpelling method of the active worksheet.

    CType(Application.ActiveSheet, Excel.Worksheet).CheckSpelling()
    
    ((Excel.Worksheet)Application.ActiveSheet).CheckSpelling();
    

See Also

Tasks

How to: Programmatically Run Excel Calculations Programmatically

Concepts

Working with Worksheets

NamedRange Control

Optional Parameters in Office Solutions