Excel: Macro Error Using SPELLING.CHECK() on Blank CellsLast reviewed: July 16, 1997Article ID: Q83493 |
The information in this article applies to:
SUMMARYIn Microsoft Excel, a reference to a blank cell in the word_text argument of SPELLING.CHECK() will result in a Macro Error.
MORE INFORMATIONMicrosoft Excel versions 4.0 and later provide a macro function that allows non-interactive spell checking. The function, SPELLING.CHECK(), takes three arguments; a word or text argument, the name of a custom dictionary and whether or not to ignore uppercase letters. If the word text argument is a reference to a blank cell you will receive a macro error when this function is called. To use SPELLING.CHECK() without getting an error on blank cells, use a FOR.CELL() loop as in the following example. Note that the skip_blanks argument to FOR.CELL() is set to TRUE. This function macro simply returns true if all the words in the given range are spelled correctly and false if any misspelled words are found.
REFERENCES"Microsoft Excel Function Reference," version 4.0, pages 416-417
|
Additional query words: 5.00 4.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |