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

ID: Q108828

The information in this article applies to:

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
Version           : 4.00 4.00a 5.00
Platform          : WINDOWS

Last Reviewed: July 2, 1997