Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

XL2000: How to Check Spelling for Worksheet Objects Only


View products that this article applies to.

This article was previously published under Q213608

↑ Back to the top


Summary

In Microsoft Excel, you can check spelling for just the objects on a worksheet. You can do this manually or with Microsoft Visual Basic for Applications code.

↑ Back to the top


More information

NOTE: Although WordArt in Microsoft Office is an object, you can not check its spelling manually or with the sample code because of its graphical nature.

Checking Spelling Manually

  1. Select the objects. To do this, click the first object, and then hold down SHIFT and click each additional object.
  2. On the Tools menu, click Spelling.

Using a Macro to Check Spelling

Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
  1. On the Tools menu, point to Macro, and then click Visual Basic Editor (or press ALT+F11).
  2. On the Insert menu, click Module.
  3. In the module sheet, type the following code:
    Sub Check_Object_Spelling()
        ActiveSheet.DrawingObjects.CheckSpelling
    End Sub
    					
  4. On the File menu, click Close and Return to Microsoft Excel.
  5. Select the sheet that contains the objects whose spelling you want to check.
  6. On the Tools menu, click Macro. Click the Check_Object_Spelling macro, and then click Run.

↑ Back to the top


References

For more information about using the spelling tool in Excel, click Microsoft Excel Help on the Help menu, type Check Spelling in the Office Assistant or the Answer Wizard, and then click Search to view the topics returned.

↑ Back to the top


Keywords: KB213608, kbhowto, kbdtacode

↑ Back to the top

Article Info
Article ID : 213608
Revision : 6
Created on : 10/10/2006
Published on : 10/10/2006
Exists online : False
Views : 243