There is a ListBox with several Items.
I need to Delete all ListItems Text = "*"
I try with following code
This pice of code gives an errorCode:Private Sub RemoveReservedPalletFromLV() Dim l As Long Dim li As MSComctlLib.ListItem For Each li In lv.ListItems If li.Text = "*" Then lv.ListItems.Remove (li.Index) End If Next End Sub
"control collection has been modified"
Can any one help me
Thank u in Advance
Dinesh




Reply With Quote