Sub usedR()
ActiveSheet.UsedRange.Select
'Deletes the entire row within the selection if the ENTIRE row contains no data.
Dim i As Long
'Turn off calculation and screenupdating to speed up the macro.
With Application
.Calculation = xlCalculationManual
.ScreenUpdating = False
'Work backwards because we are deleting rows.
For i = Selection.Rows.Count To 1 Step -1
If WorksheetFunction.CountA(Selection.Rows(i)) = 0 Then
Selection.Rows(i).EntireRow.Delete
End If
Next i
.Calculation = xlCalculationAutomatic
.ScreenUpdating = True
End With
End Sub
Range("A:A").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
Perhaps:
Code:Range("A:A").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
Amend column as appropriate
Perhaps:
Code:Range("A:A").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
Amend column as appropriate