All,
I have a macro that currently selects blank cells and deletes the entire row. This file is around 9,000 rows of data in which 1,800 or so are being deleted.
It is currently bogging down Excel 2010/64bit on a computer that has 6gb ram. The macro turns off screenupdating before it gets to this point.
Is this the most efficient code to delete rows or is a loop better?
Thanks!
I have a macro that currently selects blank cells and deletes the entire row. This file is around 9,000 rows of data in which 1,800 or so are being deleted.
Code:
Range("A1").Select
ActiveCell.Offset(2, 2).Range("A1:A" & FinalRow - 1).Select
Selection.SpecialCells(xlCellTypeBlanks).Select
Selection.EntireRow.Delete
Is this the most efficient code to delete rows or is a loop better?
Thanks!