XL5: Macro with EDIT.REPEAT() Function Runs Indefinitely

Last reviewed: June 30, 1997
Article ID: Q108828
The information in this article applies to:
  • Microsoft Excel for Windows, version 4.0, 4.0a, 5.0

SUMMARY

In Microsoft Excel versions 4.x and 5.0, running a Microsoft Excel 4.0 macro that performs an EDIT.REPEAT() function will execute correctly the first time, but subsequent executions will cause the macro to loop an infinite number of times. The only way to break out of this loop is to press the ESC key.

This is by design.

The first time the macro function EDIT.REPEAT() is run, the last action performed is repeated. Therefore, when the EDIT.REPEAT() is executed immediately after the first EDIT.REPEAT(), the macro will infinitely repeat the last action and the macro will repeat over and over again.


Additional query words: 4.00 4.00a 5.00 hang loop
Keywords : kbmacro kbprg kbprb
Version : 4.00 4.00a 5.00
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 30, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.