Does anyone know the VBA to delete a row based on the contents of a particular cell?
I have the following formula comparing to another sheet to see if there is a duplicate:
=IF(ISERROR(MATCH(B7,Data!A:A,0))=FALSE, "Y","N")
How can I write the VBA to then take the cells that have a "Y" and delete those rows, leaving only the rows with a "N" in them.
Thanks in advance
(Excel 2010)
I have the following formula comparing to another sheet to see if there is a duplicate:
=IF(ISERROR(MATCH(B7,Data!A:A,0))=FALSE, "Y","N")
How can I write the VBA to then take the cells that have a "Y" and delete those rows, leaving only the rows with a "N" in them.
Thanks in advance
(Excel 2010)