Hi all,
I need to make the following code insert more than one row. How can I modify the code to insert 2 or 3 or 4, etc rows?
FinalRow = Cells(Rows.Count, 3).End(xlUp).Row
For x = FinalRow To 5 Step -1
If Cells(x, "A").Value <> Cells(x + 1, "A").Value Then Rows(x + 1).Insert
Next x
Thanks in advance for your help
I need to make the following code insert more than one row. How can I modify the code to insert 2 or 3 or 4, etc rows?
FinalRow = Cells(Rows.Count, 3).End(xlUp).Row
For x = FinalRow To 5 Step -1
If Cells(x, "A").Value <> Cells(x + 1, "A").Value Then Rows(x + 1).Insert
Next x
Thanks in advance for your help