XL97: Error When You Change List Property of Combo BoxLast reviewed: March 13, 1998Article ID: Q168604 |
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:
Run-time error '28': Out of stack spaceOr, you may receive the following error message:
This program has performed an illegal operation and will be shut down. If the problem persists, contact the program vendor.If you click Details, you receive an error message similar to either of the following:
EXCEL caused an invalid page fault in module FM20.DLL at 0137:60025b9e. EXCEL caused an invalid page fault in module KERNEL32.DLL at 0137:bff85808. CAUSEThis problem may occur if the following conditions are true:
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. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONWhen 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:
Private Sub ComboBox1_DropButtonClick() '<code goes here> End SubThe 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:
Private Sub ComboBox1_DropButtonClick() Dim ListArray(0 To 3) As String ListArray(0) = Now ListArray(1) = Now + 0.25 ListArray(2) = Now + 0.5 ListArray(3) = Now + 1 ComboBox1.List = ListArray End SubIt 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
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |