I am trying to delete rows with specific string inside cell value.
For i = 1 to 5000
If InStr(cells(i,1).value, "GUACAMOLE", vbTextCompare) Then
Rows(i).EntireRow.Delete
End If
Next I
It deletes only a few rows that contain Guacamole string, the range of loop is proper. I tried a lot of methods, like using left, or mid or just by single symbols.