The information in this article applies to:
SYMPTOMSWhen you click a combo box in a UserForm in Microsoft Excel 97, you may receive the following error message: Or, you may receive the following error message: If you click Details, you receive an error message similar to either of the following:
CAUSE
This problem may occur if the following conditions are true:
-and- RESOLUTIONTo prevent this problem from occurring, do not change the List property for a combo box in the subroutine assigned to the DropButtonClick event of the combo box. STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. MORE INFORMATION
When you add a control to a UserForm in Microsoft Excel 97, you can assign
a subroutine to each event to which the control responds: for example,
Click, Change, DblClick, and so on. To do this, follow these steps:
The DropButtonClick event for a combo box is triggered whenever the list
for the combo box appears or disappears. If the subroutine assigned to this
event uses the List property to reset the list for the combo box, you will
receive an error message when you run the UserForm and click the combo box.
For example:
It is recommended that you do not use this method to reset the list for a
combo box in Microsoft Excel 97. Instead, reset the list when you display
the UserForm, or when you click another control in the UserForm, such as a
command button.
Additional query words: 97 XL97 combobox dropdown list box
Keywords : kberrmsg kbui kbdta KbVBA kbhowto |
Last Reviewed: November 4, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |