Displaying Several Dialog Boxes Without Looping (125805)
The information in this article applies to:
- Microsoft Excel 97 for Windows
- Microsoft Excel for Windows 95
- Microsoft Excel for Windows 5.0
This article was previously published under Q125805 SUMMARY
In Microsoft Excel, when you create a macro that displays several dialog
boxes, you may want to display and hide the dialog boxes with some method
other than a Do While...Loop. For example, a Do While...Loop may not be the
most effective method if you want to cycle through several dialog boxes at
a time. The loop is not the best method in this case, because, when you use
this method, a dialog box is still being displayed and remains on the
stack, even after the dialog box has been dismissed.
Instead of using a Do While ...Loop, you can use the OnTime method to run
the macro at a specified time. Note, however, that when you use this
method, there may be a delay before each dialog box is displayed (this
delay does not occur with the looping method). To create an example that
uses the OnTime method to display dialog boxes, follow the procedure in the
"More Information" section of this article.
For additional information about solving this problem with the looping
method, please see the following article(s) in the Microsoft Knowledge
Base:
111867 XL5 Err Msg: "Not Enough Stack Space to Run Macro"
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbProgramming KB125805 |
---|
|