XL5: Macro Assigned to an Edit Box May Not Run

Last reviewed: December 1, 1997
Article ID: Q124229
The information in this article applies to:
  • Microsoft Excel for Windows, versions 5.0, 5.0c
  • Microsoft Excel for Macintosh, versions 5.0, 5.0a

SYMPTOMS

In Microsoft Excel, if you create a dialog sheet, and you assign a macro to an edit box control with an Edit Validation type of Reference or Formula, the macro may not run as expected. That is, the macro will not run until you select another control object that is not a Reference or Formula edit box.

STATUS

Microsoft has confirmed this to be a problem in the products listed above. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

An edit box control is an object that can be used in a dialog box to allow users to enter data. Edit boxes have an Edit Validation property which determines how the contents of the selected edit box will be validated when the dialog box is closed. The Edit Validation property can be any one of the following types: Text, Integer, Number, Reference, or Formula.

With the exception of the Reference and Formula types, each of these validation types will allow a macro to run any time you change the edit box. However, by design, the Reference and Formula edit box types will not run a macro until you select another control object on the dialog box. However, the macro does not execute immediately if the other control that is selected is another Reference or Formula edit box. Also, if the other control you select (the OK button for example) has a macro assigned to it, that macro will not be executed.


Additional query words: 5.00 5.00c

Keywords : kbprg PgmOthr
Version : WINDOWS:5.0,5.0c; MACINTOSH:5.0,5.0a
Platform : MACINTOSH WINDOWS
Issue type : kbbug
Solution Type : kbpending


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: December 1, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.