Arkadaşlar aşağıdaki kod ile ilgili açıklama şöyledir. Formda textbox2 içinde yazan değer memba ise süzme sonucu seçilen değer 115 nolu satıra,mansab ise 117 nolu satıra kopyalayacak. Acaba if ... then komutunu yanlış yerdemi kullanıyorum.
Private Sub CommandButton1_Click()
Dim ts, kaplan As New Collection, trabzonspor As Range, bordo
Dim I As Integer
Set bordo = Sheets("Sayfa1")
If ComboBox1.ListIndex < 0 Then Exit Sub
On Error Resume Next
For ts = 2 To bordo.Cells(Rows.Count, "A").End(xlUp).Row
Next
ts = bordo.Range("A" & Rows.Count).End(xlUp).Row
Selection.EntireRow.Select
ts = Range("A2:A63563").End(5).Row
For I = 1 To 109
Sheets("sayfa1").Cells(115, I) = Cells(ts, I) ' textbox2 'deki değer "memba" ise sayfa1de 115 nolu satıra, "mansab" ise 117 nolu satıra kopyala yapmam gerekiyor.if .. then komutunu buraya nasıl yazabilirim
End Sub
Private Sub CommandButton1_Click()
Dim ts, kaplan As New Collection, trabzonspor As Range, bordo
Dim I As Integer
Set bordo = Sheets("Sayfa1")
If ComboBox1.ListIndex < 0 Then Exit Sub
On Error Resume Next
For ts = 2 To bordo.Cells(Rows.Count, "A").End(xlUp).Row
Next
ts = bordo.Range("A" & Rows.Count).End(xlUp).Row
Selection.EntireRow.Select
ts = Range("A2:A63563").End(5).Row
For I = 1 To 109
Sheets("sayfa1").Cells(115, I) = Cells(ts, I) ' textbox2 'deki değer "memba" ise sayfa1de 115 nolu satıra, "mansab" ise 117 nolu satıra kopyala yapmam gerekiyor.if .. then komutunu buraya nasıl yazabilirim
End Sub
