Hello all
I hope you can help me on this please
I want to change this code so that it delete all row NOT equal to "INS" instead of deleting "INS"
Any ideas please
I hope you can help me on this please
I want to change this code so that it delete all row NOT equal to "INS" instead of deleting "INS"
Any ideas please
Code:
arrWords = Array("INS")
xlCalc = Application.Calculation
Set rng = Range("c1:c2000")
For rw = rng.Rows(rng.Rows.Count).Row To rng.Rows(1).Row Step -1
For j = 0 To UBound(arrWords)
If InStr(1, rng(rw, 1), arrWords(j), vbTextCompare) Then
bDel = True
rng.Parent.Rows(rw).EntireRow.Clear
Exit For
End If
Next
Next