G
Guest
As we have application.enableevents = false where we can disable the
application events...is there a similar way to disable object events....
For example in the below example : I am looking for that every time the item
is removed from the combobox/listbox it should not go to combobox/listbox
change event.
Sub unpopulate_ListBoxes(ByRef listbox_Name As ComboBox)
Dim I As Integer
If listbox_Name.ListCount > 0 Then
For I = 0 To listbox_Name.ListCount - 1
listbox_Name.RemoveItem (listbox_Name.ListCount - 1)
Next I
End If
End Sub
application events...is there a similar way to disable object events....
For example in the below example : I am looking for that every time the item
is removed from the combobox/listbox it should not go to combobox/listbox
change event.
Sub unpopulate_ListBoxes(ByRef listbox_Name As ComboBox)
Dim I As Integer
If listbox_Name.ListCount > 0 Then
For I = 0 To listbox_Name.ListCount - 1
listbox_Name.RemoveItem (listbox_Name.ListCount - 1)
Next I
End If
End Sub