DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Açıklama yazdım. Umarım anlatabilmişimdir.
Option Explicit
Sub altalta_aynı_olanları_getir_1967()
'Konu : Alt Alta Aynı Olanları Taşı
'Mail : m.batu.1967@gmail.com
'Msn : m.batu.1967@hotmail.com.tr
'Coder By : asi_kral_1967
Dim asi As Worksheet, kral As Worksheet
Dim a As Long, b As Long, c
Set asi = Sheets("Sayfa1"): Set kral = Sheets("Sayfa2")
Application.ScreenUpdating = False
kral.Select
Range("A1:S" & Rows.Count).ClearContents
c = ActiveCell.Address
For a = 2 To asi.Cells(Rows.Count, "J").End(xlUp).Row
b = kral.Range("A" & Rows.Count).End(xlUp).Row
If b > 1 Then
b = kral.Range("A" & Rows.Count).End(xlUp).Row + 1
End If
If asi.Cells(a - 1, "J") = asi.Cells(a, "J") Then
asi.Range("A" & a - 1 & ":S" & a).Copy
kral.Range("A" & b).PasteSpecial (xlPasteValues)
Application.CutCopyMode = False
End If
Next
Range(c).Select
Application.ScreenUpdating = True
MsgBox "İşlem Tamamlandı", vbInformation, "asi_kral_1967"
End Sub