You can either set the ListView MultiSelect property to False, or you can change the code to
ListView_LOP.SelectedIndices.Clear()
ListView_LOB.Focus()
For i = 0 To ListView_LOB.Items.Count - 1
If ListView_LOB.Items(i).SubItems(1).Text = TextBox1.Text Then
ListView_LOB.Items(i).Selected = True
End If
Next
Reverend Jim
Illigitimae non carborundum
3,740 posts since Aug 2010
Reputation Points: 585
Solved Threads: 469
Skill Endorsements: 33
Question Answered as of 3 Months Ago by
Reverend Jim