I would like to delete #N/A in Col U from row 2 onwards
I have written code to do this, but cannot get the macro to delete these
It would be appreciated if someone could kindly assist me
I have written code to do this, but cannot get the macro to delete these
Code:
Sub Delete_Unwanted_Data()
Sheets("Creditors Paid").Select
Dim LR As Long, i As Long
LR = Range("A" & Rows.Count).End(xlUp).Row
For i = LR To 2 Step -1
If Range("U" & i) = "#N/A" Then EntireRow.Delete
Next i
End Sub
It would be appreciated if someone could kindly assist me