Hi,
I've been using an Excel macro to remove NA/NV rows from my worksheet:
'-----------------------------------------------------------
' ExcludeNV - Removes rows with #NA in column D
'-----------------------------------------------------------
Sub ExcludeNV()
Dim lRows As Long, lRow As Long
Application.ScreenUpdating = False
Worksheets("Customer Details").Activate
lRows = ActiveSheet.UsedRange.Rows.Count
' scans rows from the end upwards for proper indexing
For lRow = lRows To 2 Step -1
If IsError(Cells(lRow, 4).Value) Then _
If Cells(lRow, 4).Value = CVErr(xlErrNA) Then _
Rows(lRow).Delete Shift:=xlUp
Next lRow
End Sub
However, this is causing Excel to hang. Any ideas why?
Thanks,
Oliver