This recorded procedure must be not launched if there is no blank cell within the last column or SpecialCells will crash it
like you can check just running it twice and, as Delete works already only with visible cells, so it is useless here !
Let's see first the filter method so like whatever could be the criteria but first two points :
UsedRange is usefull with a smart designed worksheet.
According to your attachment with the useless comments column that's no more the case
so first insert a blank column between columns J & K in order this comments column moves to column L
so in this case the CurrentRegion can be exploited rather than UsedRange :
According to the VBA help let's see now the direct SpecialCells way but not for the visible but for the blank cells.
As this tricky method crashes when nothing matches so before to use it the VBA procedure must first check
if only a blank cell exists via the worksheet function COUNTBLANK :
► Do you like it ? ► ► So thanks to click on bottom left star icon « ★ Add Reputation » ! ◄ ◄
Bookmarks