i want to remove a specific item from a list. the specific item being text7.text.
so how would i go about removing text7.text from list1.list.
o_o
Printable View
i want to remove a specific item from a list. the specific item being text7.text.
so how would i go about removing text7.text from list1.list.
o_o
I have typed the following in a notepad so amend the syntax errors if any...
Code:Sub Sample()
For j = List1.ListCount - 1 To 0 Step -1
If Trim(Text7.Text) = Trim(List1.List(j)) Then
List1.Selected(j) = True
List1.RemoveItem List1.ListIndex
Exit For
End If
Next j
End Sub
works like a charm. :)
thanks much, appreciate it