G
Guest
I wanted to delete blank rows using the following:
Public Sub DeleteRowOnCell(
On Error Resume Nex
Selection.SpecialCells(xlCellTypeBlanks).EntireRow.Delet
ActiveSheet.UsedRang
End Su
But I wanted instead of to check for an empty cell (as the above does?) to see if the following formula returned "" and delete the row if it did and to leave it if it didnt
=IF(ISERROR(VLOOKUP(B1,Sheet2!A1:A10,1,FALSE))=TRUE,"","1"
If anyone can help i'd sure appreciate it
Thanks in advanc
Mark
Public Sub DeleteRowOnCell(
On Error Resume Nex
Selection.SpecialCells(xlCellTypeBlanks).EntireRow.Delet
ActiveSheet.UsedRang
End Su
But I wanted instead of to check for an empty cell (as the above does?) to see if the following formula returned "" and delete the row if it did and to leave it if it didnt
=IF(ISERROR(VLOOKUP(B1,Sheet2!A1:A10,1,FALSE))=TRUE,"","1"
If anyone can help i'd sure appreciate it
Thanks in advanc
Mark