- Katılım
- 31 Aralık 2007
- Mesajlar
- 227
- Excel Vers. ve Dili
- Office 2007 Türkçe
Aşağıdaki kodlar ile sayfa4, A sütunundaki öğrenci numarası ile textbox1 e aynı sayfanın b sütunundaki isimleri çekmek istiyorum. comboboxta hangi numarayı seçersem seçeyim hep b2 deki isim geliyor. Nasıl değiştirmrm gerekir?
Kod:
Private Sub ComboBox1_Change()
Dim sa As Integer
For sat = 2 To Sayfa4.Cells(65536, "a").End(xlUp).Row
If Sayfa4.Cells(sat, "a") Like "*" & TextBox1 & "*" Then
TextBox1 = Sayfa4.Cells(sat, "b").Value
End If
Next
End Sub
