DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
[B]Private Sub [COLOR="Red"]TextBox99[/COLOR]_Change()[/B]
Set d = Sheets("deneme")
son = d.Cells(Rows.Count, 1).End(3).Row
If Replace([COLOR="Red"]TextBox99[/COLOR], " ", "") = "" Then
d.Range("[B][COLOR="Blue"]H[/COLOR][/B]2:[B][COLOR="blue"]H[/COLOR][/B]" & son).ClearContents
ListBox1.RowSource = "deneme!A2:C" & son
Else
ListBox1.RowSource = "": ListBox1.Clear
d.Range("[B][COLOR="blue"]H[/COLOR][/B]2:[B][COLOR="blue"]H[/COLOR][/B]" & son).ClearContents
x = 0
For Each hcr In d.Range("[B][COLOR="Blue"][SIZE="4"]B[/SIZE][/COLOR][/B]2:[B][COLOR="blue"][SIZE="4"]F[/SIZE][/COLOR][/B]" & son)
If Len(hcr.Value) <> Len(Replace(hcr.Value, [COLOR="Red"]TextBox99[/COLOR], "")) And d.Cells(hcr.Row, "[B][COLOR="blue"]H[/COLOR][/B]") = "" Then
ListBox1.AddItem
ListBox1.List(x, 0) = d.Cells(hcr.Row, "A")
ListBox1.List(x, 1) = d.Cells(hcr.Row, "B")
ListBox1.List(x, 2) = d.Cells(hcr.Row, "C")
d.Cells(hcr.Row, "H") = "x"
x = x + 1
End If
Next
End If
[B]End Sub[/B]