Sub InsertRow_At_Change()
'Sandy Mann July 1st, 2007
Dim LastRow As Long
Dim X As Long
LastRow = Cells(Rows.Count, 1).End(xlUp).Row 'assumes column A
Application.ScreenUpdating = False
For X = LastRow To 3 Step -1
If Cells(X, 1).Value <> Cells(X - 1, 1).Value Then
If Cells(X, 1).Value <> "" Then
If Cells(X - 1, 1).Value <> "" Then
Cells(X, 1).entirerow.Insert Shift:=xlDown
End If
End If
End If
Next X
Application.ScreenUpdating = True
End Sub
Gord Dibben MS Excel MVP
On Thu, 5 Nov 2009 10:01:02 -0800, Andy <Andy.TakeThisOut@discussions.microsoft.com>
wrote:
>I want a blank row inserted in a list after the group breaks. Can anyone
>supply me macro code to do this? Thanks.