
Delete multiple listview items?
Here's one way....
'=========
Private Sub cmdDeleteSelected_Click()
Dim i As Integer
With ListView1.ListItems
For i = .Count To 1 Step -1
If .Item(i).Selected Then
.Remove (i)
End If
Next
End With
End Sub
'=========
--
Ken Halter
MS-MVP-VB
Please keep it in the groups..
Quote:
> Hello,
> I have a listview control that allows multiple row selection.
> Can anyone tell me how to remove all selected rows at once?
> Any help would be greatly appreciated!
> Thanks in advance.