Arkadaşlar ekteki dosyayı incelermisiniz.mükerrer kayıtların satır numaralarını vermesini istiyorum.
Ekli dosyalar
-
46.2 KB Görüntüleme: 30
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Option Explicit
Sub MÜKERRER_VERİLERİN_SATIR_NOLARINI_BUL()
Dim X As Long, BUL As Range, ADRES As String
With Range("C3:C65536,F3:F65536")
.ClearContents
.NumberFormat = "@"
End With
For X = 3 To Range("B65536").End(3).Row
If Cells(X, 2) <> Empty Then
Set BUL = Range("B:B").Find(Cells(X, 2), LookAt:=xlWhole)
If Not BUL Is Nothing Then
ADRES = BUL.Address
Do
If X <> BUL.Row Then
If Cells(X, 3) = Empty Then
Cells(X, 3) = BUL.Row
Else
Cells(X, 3) = Cells(X, 3) & "-" & BUL.Row
End If
End If
Set BUL = Range("B:B").FindNext(BUL)
Loop While Not BUL Is Nothing And BUL.Address <> ADRES
End If
End If
Next
For X = 3 To Range("E65536").End(3).Row
If Cells(X, 5) <> Empty Then
Set BUL = Range("E:E").Find(Cells(X, 5), LookAt:=xlWhole)
If Not BUL Is Nothing Then
ADRES = BUL.Address
Do
If X <> BUL.Row Then
If Cells(X, 6) = Empty Then
Cells(X, 6) = BUL.Row
Else
Cells(X, 6) = Cells(X, 6) & "-" & BUL.Row
End If
End If
Set BUL = Range("E:E").FindNext(BUL)
Loop While Not BUL Is Nothing And BUL.Address <> ADRES
End If
End If
Next
Set BUL = Nothing
MsgBox "İşleminiz tamamlanmıştır.", vbInformation
End Sub