سلام
کد:
Dim i As Integer Dim j As Integer With ListBox1 .MultiSelect = fmMultiSelectSingle .ListIndex = -1 .MultiSelect = fmMultiSelectMulti For i = 0 To .ListCount - 1 For j = 0 To .ColumnCount - 1 If InStr(1, .Column(j, i), TextBox17.Text, vbTextCompare) Then .ListIndex = i .Selected(i) = True End If Next j Next i End With
کامنت