Article ID: 157755 - Last Review: October 11, 2006 - Revision: 1.2 XL97: Using "Checked", "Gray", and "Unchecked" in MacrosThis article was previously published under Q157755 SYMPTOMS
In Microsoft Excel 97, when you run a Visual Basic for Applications macro,
you may receive the following error message:
Compile error: Invalid Qualifier CAUSE
This behavior occurs when the following conditions are both true:
This behavior is by design of Microsoft Excel. WORKAROUND
You can avoid this problem by performing either of the following:
MORE INFORMATION
In earlier versions of Microsoft Excel, the words "Checked", "Gray", and
"Unchecked" have no special meaning. However, in Microsoft Excel 97, these
three words are global constants belonging to the Stdole Type Library.
Because of this, it is not possible to refer to these constants by enclosing them in brackets when running a macro in Microsoft Excel 97. Use either of the workarounds shown above to eliminate this problem. | Article Translations
|

Back to the top
