- Katılım
- 9 Aralık 2010
- Mesajlar
- 32
- Excel Vers. ve Dili
- office 2007
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub farklilar()
Dim sat As Integer
Dim s As Integer
[a2:b1000].Clear
s = 2
For sat = 2 To Sayfa1.Cells(65536, "a").End(xlUp).Row
If WorksheetFunction.CountIf(Sayfa1.Range("a2:a" & sat), Sayfa2.Cells(sat, "a")) <> 1 Then
Cells(s, "a") = Sayfa1.Cells(sat, "a").Value
Cells(s, "b") = Sayfa1.Cells(sat, "b").Value
s = s + 1
End If
Next
End Sub
Kod:Sub farklilar() Dim sat As Integer Dim s As Integer [a2:b1000].Clear s = 2 For sat = 2 To Sayfa1.Cells(65536, "a").End(xlUp).Row If WorksheetFunction.CountIf(Sayfa1.Range("a2:a" & sat), Sayfa2.Cells(sat, "a")) <> 1 Then Cells(s, "a") = Sayfa1.Cells(sat, "a").Value Cells(s, "b") = Sayfa1.Cells(sat, "b").Value s = s + 1 End If Next End Sub