The information in this article applies to:
SYMPTOMSIn the versions of Microsoft Excel listed at the beginning of this article, when you attempt to display a dialog box over another dialog box, and the first dialog box contains a text box that has the Reference or Formula "Edit Validation" type, you may receive the following error message: This error occurs when the second dialog box is displayed during an event macro of a control on the first dialog box, and the first dialog box has not been unloaded. CAUSEThis is a known limitation with Microsoft Excel 5.0 style dialog boxes. You cannot stack a semi-modeless dialog box (any dialog box that has a Reference or Formula type edit box) on top of another dialog box. WORKAROUNDTo work around this limitation, use any of the following methods. Method 1: Change the Edit Box Type
Method 2: Unload the First Dialog Box Before You Show the SecondUnload the first dialog box before you show the second dialog box (which contains the Reference or Formula type edit box).Method 3: Use UserFormsIf you are using Microsoft Excel 97, use UserForms instead of Microsoft Excel 5.0 dialogs. UserForms do not have this limitation.For additional information, please see the following article in the Microsoft Knowledge Base: Q111867 XL Err Msg: "Not Enough Stack Space to Run Macro" Microsoft Excel 97For information about using UserForms in Microsoft Excel 97:
Additional query words: validate XL97 XL7 XL5
Keywords : kberrmsg kbprg kbdta kbdtacode PgmCtrlsStd KbVBA |
Last Reviewed: October 22, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |