- Katılım
 - 4 Eylül 2020
 
- Mesajlar
 - 394
 
- Excel Vers. ve Dili
 - Excel 2016
 
- Altın Üyelik Bitiş Tarihi
 - 22-11-2022
 
Merhaba alttaki kodu buldum . Textbox yazan değere listbox   1 sutun da arama yapıyor fakat soldan içerirleri arıyor . ben tam eşleşme olmasını istiyorum. Tam eşleşme olanları bulsun yardımcı olursanız sevinirim
	
	
	
		
								
		Kod:
	
	Private Sub CommandButton3_Click()
Dim SearchCriteria, i, n As Double
On Error GoTo bitir
SearchCriteria = Me.TextBox7.Value
 If SearchCriteria = "" Then Exit Sub
n = ListBox1.ListCount
For i = 0 To n - 1
If Left(ListBox1.List(i), Len(SearchCriteria)) = SearchCriteria Then
ListBox1.ListIndex = i
Exit Sub
Exit For
End If
Next i
bitir:
MsgBox "ARANAN DEĞER BULUNAMADI...", vbOKOnly + vbInformation, "YOK"
End Sub
	
				