I would like to remove an item from a ListBox in VBA by simply clicking the list item.
I have an event that handles this on click, but when I call the .RemoveItem method it automatically fires the click event again.
I have tried to set Application.EnableEvents = False but it didn't work (because I was in a form?)
Any ideas?
Thank you!
I have an event that handles this on click, but when I call the .RemoveItem method it automatically fires the click event again.
Excel Formula:
Private Sub RequestedList_Click()
RequestedList.RemoveItem RequestedList.ListIndex
End Sub
I have tried to set Application.EnableEvents = False but it didn't work (because I was in a form?)
Any ideas?
Thank you!