Private Sub ComboBox1_Change()
ListBox1.RowSource = ""
ListBox1.Clear
For i = 2 To a
If ComboBox1.Text = Cells(i, 1) Then
With ListBox1
.AddItem Cells(i, 1)
.List(.ListCount - 1, 1) = Cells(i, 2)
.List(.ListCount - 1, 2) = Cells(i, 3)
.List(.ListCount - 1, 3) = Cells(i, 4)
.List(.ListCount - 1, 4) = Cells(i, 5)
.List(.ListCount - 1, 5) = Cells(i, 6)
.List(.ListCount - 1, 6) = Cells(i, 7)
.List(.ListCount - 1, 7) = Cells(i, 8)
End With
End If
Next i
End Sub
bu kodun açıklamasına ihtiyacım var arkadaşlar. mümkünse satır satır şimdiden teşekkürler:hey:
ListBox1.RowSource = ""
ListBox1.Clear
For i = 2 To a
If ComboBox1.Text = Cells(i, 1) Then
With ListBox1
.AddItem Cells(i, 1)
.List(.ListCount - 1, 1) = Cells(i, 2)
.List(.ListCount - 1, 2) = Cells(i, 3)
.List(.ListCount - 1, 3) = Cells(i, 4)
.List(.ListCount - 1, 4) = Cells(i, 5)
.List(.ListCount - 1, 5) = Cells(i, 6)
.List(.ListCount - 1, 6) = Cells(i, 7)
.List(.ListCount - 1, 7) = Cells(i, 8)
End With
End If
Next i
End Sub
bu kodun açıklamasına ihtiyacım var arkadaşlar. mümkünse satır satır şimdiden teşekkürler:hey: