Here's some code you can modify to your needs, just change the range "a1" to your first cell in the list and "a2" to the second, should work fine.
Sub InsertRows()
Dim x As Integer
Do While Not Range("A2".Offset(x) = ""
If Range("A1".Offset(x) = Range("A2".Offset(x) Then
Else
Range("A1".Offset(x + 1).EntireRow.Insert
x = x + 1
End If
x = x + 1
Loop
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.