I have a vb looking to pull rows that return a certain value and place at the bottom, but it errors if it doesnt find a row with that name. Sometimes the sheet will have it and sometimes not, how do I tell it to ignore it and move on if that name doesnt appear. Here is the code so far:
With Columns(3)
.Replace "Totals For NO INSURANCE", True, xlWhole, , False, , False, False
Set Ar = .SpecialCells(xlConstants, xlLogical).Areas
.Replace True, "Totals For NO INSURANCE", xlWhole, , False, , False, False
End With
With Columns(3)
.Replace "Totals For NO INSURANCE", True, xlWhole, , False, , False, False
Set Ar = .SpecialCells(xlConstants, xlLogical).Areas
.Replace True, "Totals For NO INSURANCE", xlWhole, , False, , False, False
End With