Insert copied rows multiple times

ScottInTexas

Board Regular
Joined
Oct 28, 2003
Messages
178
I have a range copied and I want to past that range several times in each sheet (inserting a 9 row range) and moving the current contents down with each paste. My loop works once. Then it will just insert a single row, as though it has forgotten the copied range. How do I get it to insert the range each time through the loop?
Code:
intRow = 52
Set wksht = Sheets("Structures1")
    Set SourceRng = wksht.Rows("44:51")
    SourceRng.Copy
    For i = 1 To 4
        wksht.Rows(intRow & ":" & intRow).Insert Shift:=xlDown
        intRow = intRow + 8
    Next
    Application.CutCopyMode = False

Thanks
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
How about this
Code:
   Set wksht = Sheets("Structures1")
   Set SourceRng = wksht.Rows("44:51")
   wksht.Rows(52).Resize(32).EntireRow.Insert Shift:=xlDown
   SourceRng.Copy wksht.Rows(IntRow).Resize(8 * 4)
   Application.CutCopyMode = False
 
Upvote 0

Forum statistics

Threads
1,215,374
Messages
6,124,571
Members
449,173
Latest member
Kon123

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