Pankaja,
Daves macro works like a charm! I do have an add-in for conditional row delete. this works great for what you want to do. I do not know if I can attach a file here, but you can email me and I will send a reply with the file.
Thanks,
Ed
eslaski@victaulic.com
Hi Pankaja
Try this one.
Sub DeleterefRows()
'Written by OzGrid Business Applications
'www.ozgrid.com
Dim rRows As Range
Dim rCells As Integer
Dim i As Integer
Application.ScreenUpdating = False
Set rRows = Selection.EntireColumn
For i = 1 To WorksheetFunction.CountIf(rRows, "#REF!")
rRows.Find(What:="#REF!").EntireRow.Delete
Next i
Set rRows = Nothing
Application.ScreenUpdating = True
End Sub
Dave
OzGrid Business Applications
Hello Dave,
THANKS A LOT FOR SENDING ME THE MODIFIED MACRO FOR "FIND/DELETE ROW AND ROW ABOVE"
Pankaja