Microsoft KB Archive/124229

= Macro Assigned to an Edit Box May Not Run =

Article ID: 124229

Article Last Modified on 10/11/2006

-

APPLIES TO


 * Microsoft Excel 5.0c
 * Microsoft Excel 5.0a for Macintosh

-



This article was previously published under Q124229



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 XL5

Keywords: kbbug kbprogramming kbpending KB124229

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.