Hi, nested.if1 @ gmail.com
please use Code-Tags for the readability of your code.
And when deleting rows itīs very good to start at the bottom and work up (then thereīs no need to manipulate the counter. Instead of
BTW: as I handle both *.xls and *.xlsx/*.xlsm I changed from hard coding the last row with 65536 to using Rows.Count which will always deliver the proper number of rows in a worksheet. And I avoid hopping between worksheets - but thatīs of no great interest here (Iīd used Autofilter and copied the visible cells and then deleted them - just as an alternative approach)).
Ciao,
Holger
Bookmarks