View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
King[_5_] King[_5_] is offline
external usenet poster
 
Posts: 9
Default multiselect remove

Hi,

I am using mulitselect listbox. when user clicks remove button, i want
to remove all the selected items from multiselect listbox in a single
shot. i used folloing code, but it is throwing an error "Could not get
selected property, invalid arguments",

For i = 0 To SelectListBox.ListCount - 1
If SelectListBox.Selected(i) = True Then
SelectListBox.RemoveItem (i)
End If
Next

any help?

thanks,

King.