XL5: Macro Assigned to an Edit Box May Not Run

ID: Q124229


The information in this article applies to:
  • Microsoft Excel for Windows, versions 5.0, 5.0c
  • Microsoft Excel for the 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.00c

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


Last Reviewed: October 15, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.