I. Do. Not. Understand.
I am trying to delete rows based on a value (target located in column 11). This code only works for half the cells i want to delete, so i have to run it like 10 times (it goes from 520, then to 260, then 130, 65...)
My code seems simple enough but i still cannot quite figure out where the issue is...
Thanks for your help
Dim Target As String, i As Integer
Target = "Réduction ligne"
lastrow = Cells(Rows.Count, 11).End(xlUp).Row
For i = 1 To lastrow
On Error Resume Next
If Cells(i, 11).Value = Target Then
Rows(i).EntireRow.Delete = True
End If
Next i