Sub RemoveLinebreaks() Dim Rw As Range If WorksheetFunction.CountA(Selection) = 0 Then MsgBox "No data found", vbOKOnly, "OzGrid.com" Exit Sub End If With Application .Calculation = xlCalculationManual .ScreenUpdating = False Selection.SpecialCells(xlCellTypeBlanks).Select For Each Rw In Selection.Rows If WorksheetFunction.CountA(Selection.EntireRow) = 0 Then Selection.EntireRow.Delete End If Next Rw .Calculation = xlCalculationAutomatic .ScreenUpdating = True End With End Sub