silentwolf
Well-known Member
- Joined
- May 14, 2008
- Messages
- 1,216
- Office Version
- 2016
Hi got following code to delet entire row if an word is chosen in an input box.
However I do get an runtime error of 424 object not found in this line of code
does anyone know about this problem or knows how I could or need to change it so it works??
At the moment it findes me only one line and delete it
Thanks for any help!!
Albert
Code:
Sub a()
Dim rngReporter As Range, strErsteAdresse As String, Suchbegriff
Suchbegriff = InputBox("Suche nach", Title:="Löschen")
If Len(Suchbegriff) > 0 Then
With ActiveSheet.UsedRange
Do
Set rngReporter = .Find(Suchbegriff, lookat:=xlPart, LookIn:=xlValues, MatchCase:=False)
If rngReporter Is Nothing Then Exit Do
rngReporter.EntireRow.Delete
Loop Until rngReporter.Address = strErsteAdresse
End With
End If
Code:
Loop Until rngReporter.Address = strErsteAdresse
At the moment it findes me only one line and delete it
Thanks for any help!!
Albert