Hello I have a code for clear normal Listbox in Excel(not active X, and not in userform). It worked on excel 2013, but I have moved to win 10 and using Office 365 64 bit now and for some reason when Vba tries to execute lbx.RemoveAllItems on non-empty listbox which has extended selections the excel crashes(but it works in single selection mode)
original code:
what I also tried( and figured out that it always crashes when tries to remove last item in Lisbox and I know the index of last item is 1): I'll get "Run-Time error '1004':RemoveItem method of ListBox class failed" and then excel crashes again![]()
Please Login or Register to view this content.
Can anyone help plz?![]()
Please Login or Register to view this content.
Bookmarks