Insert Row and Copy Down 300 times

dtb912

New Member
Joined
Jul 19, 2019
Messages
9
Hello, I've been searching with no success. I have 300 rows of data and I'd like to insert 7 new rows between each data point, copy that data point down those new rows, then move to the next data point. This will be done 300 times until I have 2,400 rows of each data point copied 8 times. Any help would be greatly appreciated.

Thanks
DTB
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
I ended up building it out. It wasn't perfect, but it worked.

Sub CopyDown()

'
Range(ActiveCell.Offset(1), ActiveCell.Offset(7)).Select
Selection.EntireRow.Insert
Range(ActiveCell.Offset(-1), ActiveCell.Offset(6, 1)).Select
Selection.FillDown
Range(ActiveCell.Offset(8), ActiveCell.Offset(8)).Select
End Sub

Assigned it a shortcut and ran it 300 times.
 
Upvote 0
Just thought about it, added a repeat macro to it and made cell C1 300.

Sub Macro2()

Dim i as Long
For i=1 to Range("C1").Value
CopyDown
Next i

End Sub
 
Upvote 0
From the last used row up to the first row.
Code:
Sub Maybe()
Dim i As Long, lc As Long
Application.ScreenUpdating = False
lc = Cells.Find("*", , , , xlByColumns, xlPrevious).Column
    For i = Cells(Rows.Count, 1).End(xlUp).Row To 1 Step -1
        With Cells(i, 1).Resize(, lc)
            .Copy
            .Resize(7).Insert Shift:=xlDown
        End With
    Next i
Application.ScreenUpdating = True
End Sub
 
Upvote 0

Forum statistics

Threads
1,213,489
Messages
6,113,949
Members
448,534
Latest member
benefuexx

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top