object.EnableEvents = false

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
 
B

Bob Phillips

No, you need to create a variable and set that and test it in code.

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top