Public
Sub
Zeilen_löschen()
Dim
loSpalte
As
Long
, loZeile
As
Long
Application.ScreenUpdating =
False
With
Worksheets(
"Tabelle1"
)
loZeile = .Cells(.Rows.Count,
"E"
).
End
(xlUp).Row
loSpalte = .Cells(3, .Columns.Count).
End
(xlToLeft).Offset(, 1).Column
.Range(.Cells(3, loSpalte), .Cells(loZeile, loSpalte)).FormulaLocal = _
"=WENN(UND(E3<>"
"Außendurchmesser"
";E3<>"
"Wandstärke"
";E3<>"
"Ovalität"
";E3<>"
"Exzentrität"
";SUMME(F3:H3)=0);0;ZEILE())"
.Range(.Cells(3, loSpalte), .Cells(loZeile, loSpalte)).Value = .Range(.Cells(3, loSpalte), .Cells(loZeile, loSpalte)).Value
.Cells(2, loSpalte) = 0
Range(
"E2:I41"
).
Select
.Range(.Cells(2, 1), .Cells(loZeile, loSpalte)).RemoveDuplicates Columns:=loSpalte, Header:=xlNo
.Columns(loSpalte).ClearContents
End
With
End
Sub