I have a list of data with the information in column A sorted. I would like to insert three blank rows when the information in A changes. Could some one help me with a macro to do this?
Private Sub CommandButton1_Click()
Dim cell, rng As Range
Application.ScreenUpdating = False
Range("A65536").End(xlUp).Select
Do While ActiveCell.Row > 1
If ActiveCell.Value <> ActiveCell.Offset(-1, 0).Value _
And ActiveCell.Value <> "" And _
ActiveCell.Offset(-1, 0).Value <> "" Then
For x = 1 To 3: ActiveCell.EntireRow.Insert: Next
End If
ActiveCell.Offset(-1, 0).Select
Loop
Application.ScreenUpdating = True
End Sub