Sub delsomemore()
Dim datum As Range
Dim instance As Range
Dim ws As Worksheet
Worksheets("Sheet1").Select
For Each datum In Worksheets("Sheet1").UsedRange.Rows
For Each ws In Worksheets
ws.Select
If ws.Name <> "Sheet1" Then
Set instance = ws.Range("a1:h" & ws.Range("a" & ws.Rows.Count).End(xlUp).Row).Find(what:=datum, lookat:=xlWhole, searchdirection:=xlPrevious)
Do While Not instance Is Nothing
instance.EntireRow.Delete
Set instance = ws.Range("a1:h" & ws.Range("a" & ws.Rows.Count).End(xlUp).Row).FindNext
Loop
End If
Next
Worksheets("Sheet1").Select
Next
End Sub
|