I have a long section of a macro in Excel 2007.
What it does at the moment is loop down, finds a value like say '#N/A' from a VLOOKUP function.
Removes an entire row if it finds that value, removes the entire row and carries on down until there's no more rows of data to check.
But we are adding almost 3 times as many rows through a products upload of an entire catalogue, here's the code at the moment we have:
Obviously picking the cell to start off from i.e. cells(1,1).select , then does this:
[VBA] Do
If ActiveCell.Formula = "#N/A" Then
Selection.EntireRow.Delete Shift:=xlUp
Else
ActiveCell.Offset(1, 0).Select
End If
Loop Until IsEmpty(ActiveCell.Offset(0, 1))[/VBA]
Is there anyway of doing this so it saves me allot of time in the macro?
Like select the whole range in a column and then removing them all at once?
I would really appreciate some advice here and as always thanks for any help in advance,
Jeremy.