I found this code to remove the row in case a cell is left blank.
How can I amend it that it removes the row in case there is a #N/A or
#REF! exception mode in the cell?
Thank you.
Sebastien
============================
Public Sub DeleteRows()
Dim rng As Range
Application.ScreenUpdating = False
On Error Resume Next
Set rng =
Worksheets("ExportData").Range*("B1:B1000").SpecialCells(xlCe*llTypeBlanks)
On Error GoTo 0
If Not rng Is Nothing Then rng.EntireRow.Delete
Worksheets("ExportData").Selec*t
Range("A1").Select
Application.ScreenUpdating = True
End Sub
Bookmarks