- Katılım
- 10 Kasım 2006
- Mesajlar
- 399
- Excel Vers. ve Dili
- microsoft office 2007-2010-2013-2019-2021
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub test()
If Application.Caller = "Dikdörtgen 2" Then
ara = Sheets("SORGU").Range("K4")
sutun = 3
Else
ara = Sheets("SORGU").Range("K5")
sutun = 2
End If
Sheets("SORGU").Range("E10:S" & Rows.Count).ClearContents
With Sheets("KAYIT")
For i = 2 To .Cells(Rows.Count, "A").End(3).Row
If .Cells(i, sutun) = ara Then
say = say + 1
Sheets("SORGU").Cells(say + 9, 5).Resize(, 15).Value = .Cells(i, 2).Resize(, 15).Value
End If
Next
End With
MsgBox say & " Kayıt Aktarıldı. "
End Sub
Sub test()
If Application.Caller = "Dikdörtgen 2" Then
ara = Sheets("SORGU").Range("K4")
Else
ara = Sheets("SORGU").Range("K5")
End If
'Sheets("SORGU").Range("E10:S" & Rows.Count).ClearContents
With Sheets("KAYIT")
son = .Cells(Rows.Count, 1).End(3).Row
For i = 2 To 16
If .Cells(1, i) = ara Then
Sheets("SORGU").Cells(10, i + 3).Resize(son, 1).Value = .Cells(2, i).Resize(son, 1).Value
Exit For
End If
Next
End With
End Sub