I'm also quite ineperienced but to delete all blank rows I think thi
macro should work.
Sub Macro1(macro)
Public Sub DeleteBlankRows()
Dim R As Long
Dim C As Range
Dim Rng As Range
On Error GoTo EndMacro
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
If Selection.Rows.Count 1 Then
Set Rng = Selection
Else
Set Rng = ActiveSheet.UsedRange.Rows
End If
For R = Rng.Rows.Count To 1 Step -1
If Application.WorksheetFunction.CountA(Rng.Rows(R).E ntireRow) =
Then
Rng.Rows(R).EntireRow.Delete
End If
Next R
EndMacro:
Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic
End Su
--
fugfu
-----------------------------------------------------------------------
fugfug's Profile:
http://www.excelforum.com/member.php...fo&userid=2495
View this thread:
http://www.excelforum.com/showthread.php?threadid=39458