Hi
i have an multi-select (extended) value list listbox which i want to be able to remove multiple items from using a button.
this code removes the first selected item but then deselects every other selected item so nothing else is removed.
can someone advise what i'm doing wrong?
thanks
i have an multi-select (extended) value list listbox which i want to be able to remove multiple items from using a button.
this code removes the first selected item but then deselects every other selected item so nothing else is removed.
can someone advise what i'm doing wrong?
Code:
'loops through ListBox and removes items from list 2
For lbx_Sel = 0 To lst2.ListCount - 1
If lst2.Selected(lbx_Sel) = True Then
lst2.RemoveItem lbx_Sel
End If
Next
thanks