We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

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 VSTO add-in projects for Excel. For more information, see Features Available by Office Application and Project Type.

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

  1. Call the CheckSpelling method of the worksheet.

                Globals.Sheet1.CheckSpelling();
    

To check spelling in a worksheet in an VSTO Add-in

  1. Call the CheckSpelling method of the active worksheet.

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

Working with Worksheets
How to: Programmatically Run Excel Calculations Programmatically
NamedRange Control
Optional Parameters in Office Solutions

Show: