Hi,
I have the following code. It is not deleting blank rows.ie.. nothing at all in the cell... what do I need to change ??
Thanks in advance...
I have the following code. It is not deleting blank rows.ie.. nothing at all in the cell... what do I need to change ??
Code:
Sub DeleteEmptyRows()
LastRow = ActiveSheet.UsedRange.Row - 1 + ActiveSheet.UsedRange.Rows.Count
Application.ScreenUpdating = False
For r = LastRow To 1 Step -1
If Application.WorksheetFunction.CountA(Rows(r)) = 0 _
Then Rows(r).Delete
Next r
End Sub
Thanks in advance...