Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Sub emtyrowsdelete()
'--dimmensionieren---
Dim spalte, zelle As String
Dim zeile As Integer
Dim isnullcounter As Integer
'--initialisieren---
spalte = "A"
zeile = 1
isnullcounter = 0
'--und los gehts --
While isnullcounter < 6
zelle = spalte + CStr(zeile)
Range(zelle).Select
If IsNull(ActiveCell.Value) Or ActiveCell.Value = 0 Then
isnullcounter = isnullcounter + 1
Selection.EntireRow.Delete
Else
isnullcounter = 0
zeile = zeile + 1
End If
Wend
End Sub
Sub ClearNilOrEmptyRows()
Dim lRow As Long
Dim lCnt As Long
lRow = Cells.Find(what:="*", searchorder:=xlByRows, searchdirection:=xlPrevious).Row
For lCnt = lRow To 1 Step -1
If WorksheetFunction.CountA(Rows(lCnt)) = 0 Or _
WorksheetFunction.Sum(Rows(lCnt)) = 0 Then
Rows(lCnt).EntireRow.Delete
End If
Next
End Sub