I have a list of about 3000, i am using the below word find to pick out the term "Incoterm tariff C" and delete a big section of blank data. (via column A)
When running the below it will stop at about line 350, and spit out an error message "Run Time 13, Type mismatch". It stops on the highlighted line below. Why?
Sub wordfind()
LastRow = Cells(Rows.Count, 1).End(xlUp).Row
For I = LastRow To 1 Step -1
If Range("A" & I).Value = "Incoterm Tariff C" Then ' error occurs here
Range("A" & I).Select
Selection.EntireRow.delete
ActiveCell.Offset(-13).Select
ActiveCell.Resize(12).Select
Selection.EntireRow.delete
End If
Next I
End Sub
- it did a little more this time. fot stuck on A296, contains the phrase "Hawb Org Dst" dont know why, it should skip over this line seeking the next "Incoterm tariff C" line checked the incoterm line before it, and after, which is fine.