Sub DeleteVisibleRows()
With Application
.ScreenUpdating = False
.DisplayAlerts = False
End With
With ActiveSheet
.UsedRange.Offset(1, 0).SpecialCells(xlCellTypeVisible).Rows.Delete
.AutoFilterMode = False
End With
With Application
.ScreenUpdating = True
.DisplayAlerts = True
End With
End Sub