Hi All,
I'm looking for some help with this line of code below. It's working fine, except for when there is NO "#N/A" in the dataset, it errors out when it cannot find #N/A to delete.
Can someone help me with this.? I think it needs something like, "If #N/A doesn't exist Sub". I don't know how this translates into VBA.
Sub DeleteNA()
Application.ScreenUpdating = False
Columns("A:A").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
Application.ScreenUpdating = True
End Sub
Imran
I'm looking for some help with this line of code below. It's working fine, except for when there is NO "#N/A" in the dataset, it errors out when it cannot find #N/A to delete.
Can someone help me with this.? I think it needs something like, "If #N/A doesn't exist Sub". I don't know how this translates into VBA.
Sub DeleteNA()
Application.ScreenUpdating = False
Columns("A:A").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
Application.ScreenUpdating = True
End Sub
Imran