Hi I have this code:
it does the exact opposite of what I want. I would like everything to remain but the item named "model"
Can someone help me modify this? I cant get it to work right. Thanks in advance!!
Code:
Private Sub removeModel()
For i = 0 To ListBox1.ListCount - 1
If ListBox1.List(i) <> "Model" Then
ListBox1.RemoveItem i
End If
Next
End Sub
it does the exact opposite of what I want. I would like everything to remain but the item named "model"
Can someone help me modify this? I cant get it to work right. Thanks in advance!!