- Katılım
- 6 Mart 2005
- Mesajlar
- 6,233
- Excel Vers. ve Dili
-
Excel Vers. ve Dili:
Office 2016 TR 64 Bit
- Altın Üyelik Bitiş Tarihi
- 22/12/2022
Veriler A Sütunu sayfa1 de
Kod:
Sub ciftsil()
Dim sonsat As Long, sonsat1 As Long, i As Long
Application.ScreenUpdating = False
Set s1 = Sheets("Sayfa1")
sonsat = s1.Cells(Rows.Count, "A").End(xlUp).Row
Application.ScreenUpdating = False
s = 1
bas:
If WorksheetFunction.CountIf(s1.Range("A1:A" & sonsat), s1.Range("A" & s)) = 1 Then GoTo bas1
sil = s1.Range("A" & s)
For Each hucre In ActiveSheet.UsedRange
If IsError(hucre.Value) = True Then
Range(hucre.Address) = ""
ElseIf Range(hucre.Address) = sil Then Range(hucre.Address) = ""
End If
Next
bas1:
s = s + 1
If s < sonsat Then GoTo bas
On Error GoTo son
[A:A].SpecialCells(xlCellTypeBlanks).EntireRow.Delete
son:
Application.ScreenUpdating = True
MsgBox "İŞLEM TAMAM", vbInformation
End Sub