Sub AutoGroup()
'Remove any Outlining on worksheet
Cells.ClearOutline
'Begin new Outlining
Range("B2").Select
Do Until ActiveCell = "" And ActiveCell.Offset(1, 0) = ""
If ActiveCell.Offset(0, -1) <> "" Then
SR = ActiveCell.Offset(1, 0).Row
Do Until ActiveCell <> "" And ActiveCell.Offset(1, -1) <> ""
ActiveCell.Offset(1, 0).Activate
If ActiveCell = "" And ActiveCell.Offset(1, 0) = "" Then GoTo LastGroup
Loop
ER = ActiveCell.Row
End If
Rows(SR & ":" & ER).Group
ActiveSheet.Outline.SummaryRow = xlAbove
ActiveCell.Offset(1, 0).Activate
If ActiveCell = "" And ActiveCell.Offset(1, 0) = "" Then Exit Sub
Loop
LastGroup:
ER = ActiveCell.Offset(-1, 0).Row
Rows(SR & ":" & ER).Group
End Sub