Article ID: 183384
Article Last Modified on 6/17/2005
-or-
-or-
Private Sub ComboBox1_DropButtonClick()
'<code goes here>
End Sub
The DropButtonClick event for a combo box is triggered whenever the list
for the combo box appears or disappears. If the subroutine that is assigned
to this event uses the List property to reset the list for the combo box,
you 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 Sub
Microsoft recommends that you do not use this method to reset the list for
a combo box in Microsoft Excel 98. 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: combobox dropdown list box XL98
Keywords: kberrmsg kbbug kbpending KB183384