DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Ben belgeyi hatırlıyorum ama ulaşılması gereken sonucun nasıl bulunacağı/neye göre bulunacağı kafamda netleşmiyor malesef.
Belirtmiştim ama unuttunuz anlaşılan, örnek belgenizde;
-- kulanılan kod yok,
-- ulaşılması gereken sonucu başka bir sütuna elle yazmanızı istemiştim ama o da yok.
Mevcut kodun bulduğu yanlış sonuç olan hücreyi renklendirerek işaretleyin ve olması gereken sonucu nasıl bulduğunuzu da açıklayarak örnek belgeyi yenileyin bence.
.
Hala açıklama göremiyorum dosyada.
[B]Sub BUL()[/B]
Set c = Sheets("Contlist")
Application.ScreenUpdating = False: Application.Calculation = xlCalculationManual
If c.Cells(Rows.Count, 1).End(3).Row > 1 Then c.Range("A2:A" & Rows.Count).ClearContents
For sat = 2 To c.Cells(Rows.Count, 2).End(3).Row
If c.Cells(sat, 2) <> "CNT" Then
c.Cells(sat, 1) = c.Cells(sat, 2)
ilk = WorksheetFunction.Match(c.Cells(sat, 3), c.[C:C], 0)
If WorksheetFunction.CountIf(c.[C:C], c.Cells(sat, 3)) > 1 Then
For satt = 2 To c.Cells(Rows.Count, 2).End(3).Row
If c.Cells(satt, 3) = c.Cells(ilk, 3) Then c.Cells(satt, 1) = c.Cells(sat, 1)
Next
End If
End If
Next
Application.ScreenUpdating = True: Application.Calculation = xlCalculationAutomatic
[B]End Sub[/B]
Aşağıdaki gibi deneyin.
.Kod:[B]Sub BUL()[/B] Set c = Sheets("Contlist") Application.ScreenUpdating = False: Application.Calculation = xlCalculationManual If c.Cells(Rows.Count, 1).End(3).Row > 1 Then c.Range("A2:A" & Rows.Count).ClearContents For sat = 2 To c.Cells(Rows.Count, 2).End(3).Row If c.Cells(sat, 2) <> "CNT" Then c.Cells(sat, 1) = c.Cells(sat, 2) ilk = WorksheetFunction.Match(c.Cells(sat, 3), c.[C:C], 0) If WorksheetFunction.CountIf(c.[C:C], c.Cells(sat, 3)) > 1 Then For satt = 2 To c.Cells(Rows.Count, 2).End(3).Row If c.Cells(satt, 3) = c.Cells(ilk, 3) Then c.Cells(satt, 1) = c.Cells(sat, 1) Next End If End If Next Application.ScreenUpdating = True: Application.Calculation = xlCalculationAutomatic [B]End Sub[/B]