sinnernekolens
Altın Üye
- Katılım
- 23 Temmuz 2009
- Mesajlar
- 310
- Excel Vers. ve Dili
- Ofis 2019 - Türkçe 64bit
- Altın Üyelik Bitiş Tarihi
- 02-09-2027
İyi günler arkadaşlar, aşağıdaki kodda küçük ve büyük harf duyarlılığını nasıl yok edebilirim? Yani küçük harfle de yazsam bulacak büyük harfle de yazsam bulacak. yardımlarınızı rica ederim.
Private Sub TextBox1_Change()
Dim X As Long, Y As Byte, Z As Byte, Uzunluk As Integer
If Me.TextBox1 = "" Then
ListBox1.RowSource = "veri!A2:K" & Sheets("veri").Cells(Rows.Count, 1).End(3).Row
Else
Me.ListBox1.RowSource = ""
End If
On Error Resume Next
TextBox1.Text = Evaluate("=UPPER(""" & Me.TextBox1.Text & """)")
ListBox1.Clear
For X = 2 To Application.WorksheetFunction.CountA(Sheets("veri").Range("A:K"))
For Y = 1 To 12
Uzunluk = Len(TextBox1.Text)
If Left(Sheets("veri").Cells(X, Y).Value, Uzunluk) = TextBox1.Text And TextBox1.Text <> "" Then
ListBox1.AddItem Sheets("veri").Cells(X, 1).Value
For Z = 1 To 12
ListBox1.List(ListBox1.ListCount - 1, Z) = Sheets("veri").Cells(X, Z + 1).Value
Next
End If
Next
Next
End Sub