DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub Bos_Satirlari_Sil()
On Error Resume Next
Columns("E:E").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
Columns("F:F").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
Columns("G:G").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
End Sub
Merhaba,
Aşağıdaki kodları dener misiniz?
Not : Veri sayısı fazla olduğunda sorun yaratabilir, o durumda döngüyle silmek gerek.
Kod:Sub Bos_Satirlari_Sil() On Error Resume Next Columns("E:E").SpecialCells(xlCellTypeBlanks).EntireRow.Delete Columns("F:F").SpecialCells(xlCellTypeBlanks).EntireRow.Delete Columns("G:G").SpecialCells(xlCellTypeBlanks).EntireRow.Delete End Sub
Sub Bos_Satir_Sil()
Dim i As Long
Application.ScreenUpdating = False
For i = Cells(Rows.Count, "A").End(3).Row To 2 Step -1
If Cells(i, "E") = "" Or _
Cells(i, "F") = "" Or _
Cells(i, "G") = "" Then Rows(i).Delete
Next i
Application.ScreenUpdating = True
MsgBox Adet & " BOŞ SATIR BULUNDU VE SİLİNDİ", vbInformation, "[URL="http://www.excel.web.tr"]www.excel.web.tr[/URL]"
End Sub
TeşekkürlerMerhaba,
Klasik yöntem de aşağıdaki gibidir.
Kod:Sub Bos_Satir_Sil() Dim i As Long Application.ScreenUpdating = False For i = Cells(Rows.Count, "A").End(3).Row To 2 Step -1 If Cells(i, "E") = "" Or _ Cells(i, "F") = "" Or _ Cells(i, "G") = "" Then Rows(i).Delete Next i Application.ScreenUpdating = True MsgBox Adet & " BOŞ SATIR BULUNDU VE SİLİNDİ", vbInformation, "[URL="http://www.excel.web.tr"]www.excel.web.tr[/URL]" End Sub