- Katılım
- 20 Ocak 2020
- Mesajlar
- 247
- Excel Vers. ve Dili
- Office 2016 TR 64 Bit
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
sub sil()
dim STR as Long
for str= range("A"&rows.count).end(xlup).row to 2 step -1
if worksheetfunction.countif("A:A"),cells(str,"A"))> 1 then
range("A"& str ":D"& str).delete xlup
end if
next
End Sub
Bu şekilde deneyiniz.
Merhaba
Kod:sub sil() dim STR as Long for str= range("A"&rows.count).end(xlup).row to 2 step -1 if worksheetfunction.countif("A:A"),cells(str,"A"))> 1 then range("A"& str ":D"& str).delete xlup end if next End Sub
Not : Ezber yazılmıştir. Deneme yapılamamıştır.
sub sil()
dim STR as Long
for str= range("A"&rows.count).end(xlup).row to 2 step -1
if worksheetfunction.countif(range("A:A"),cells(str,"A"))> 1 then
range("A"& str ":D"& str).delete xlup
end if
next
End Sub
Doğru bir yeri atlamisim
Kod:sub sil() dim STR as Long for str= range("A"&rows.count).end(xlup).row to 2 step -1 if worksheetfunction.countif(range("A:A"),cells(str,"A"))> 1 then range("A"& str ":D"& str).delete xlup end if next End Sub
Bu şekilde dener misiniz
Sub Tekrarsiz()
Range("A2:D" & Cells(Rows.Count, 1).End(3).Row).RemoveDuplicates Columns:=1
MsgBox "Islem tamam..."
End Sub
sub sil()
dim STR as Long
for str= range("A"&rows.count).end(xlup).row to 2 step -1
if worksheetfunction.countif(range("A:A"),cells(str,"A"))> 1 then
range("A"& str & ":D"& str).delete xlup
end if
next
End Sub
Emre bey hayırlı akşamlar, çok teşekkür ederim kod çalışıyor elinize sağlıkMerhaba, alternatif olarak.
Kod:Sub Tekrarsiz() Range("A2:D" & Cells(Rows.Count, 1).End(3).Row).RemoveDuplicates Columns:=1 MsgBox "Islem tamam..." End Sub
Çok teşekkür ederim ilginiz için hakkınızı helal edin zamanınızı aldımEzber yazmanın zararlari
Kod:sub sil() dim STR as Long for str= range("A"&rows.count).end(xlup).row to 2 step -1 if worksheetfunction.countif(range("A:A"),cells(str,"A"))> 1 then range("A"& str & ":D"& str).delete xlup end if next End Sub