Excel: Macro Error on FOR() or WHILE() Loop StatementLast reviewed: November 2, 1994Article ID: Q51542 |
SUMMARYWhen Microsoft Excel encounters a FOR() or WHILE() statement, it looks ahead for the accompanying NEXT() statement. If the NEXT() statement is missing or entered incorrectly, a macro error will be returned, giving the reference of the cell containing the FOR() or WHILE() statement. If you are encountering a macro error on either a FOR() or WHILE() statement, check to see that the accompanying NEXT() statement is present and correctly entered.
|
KBCategory: kbother
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |