- Katılım
- 6 Ağustos 2005
- Mesajlar
- 327
- Excel Vers. ve Dili
- Excel 2010
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub ComboBox1_Change()
Dim MyRange As Range
Dim noA As Integer, X
ListBox1.Clear ' listbox1 temizlenir
ListBox1.ColumnCount = 2
ListBox1.ColumnWidths = "0;100"
noA = WorksheetFunction.CountA(Sheets("Sayfa1").Range("d:d"))
For Each MyRange In Sheets("Sayfa1").Range("d2:d" & noA) 'textbox1 e girilen değer sayfa 14 te d2 den itibaren d sütununda aranır
If Left(LCase(MyRange), Len(ComboBox1)) = LCase(ComboBox1) Then
ListBox1.AddItem
ListBox1.List(X, 0) = MyRange.Row
ListBox1.List(X, 1) = (MyRange) ' Textbox6 daki uygun kriter olanlar listboxta A dan Z ye sıralanır
X = X + 1
End If
Next
End Sub
Private Sub ListBox1_Click()
Dim X As Integer
X = ListBox1.List(ListBox1.ListIndex, 0)
Cells(X, 4).Select
End Sub
[COLOR=red]Private Sub ListBox1_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
Dim X As Integer
X = ListBox1.List(ListBox1.ListIndex, 0)
Rows(X).Delete
ComboBox1_Change
End Sub[/COLOR]