Rick, see if you can work with this:
Sub rsz()
Dim lstRw As Long
lstRw = Cells(Rows.Count, 1).End(xlUp).Row
For i = lstRw To 1 Step -1
Cells(i, 1).EntireRow.Copy
Range(Cells(i + 1, 1), Cells(i + 5, 1)).EntireRow.PasteSpecial
Paste:=xlPasteFormulas
If Cells(i, 1).Row <> 1 Then
Cells(i, 1).Resize(5, 4).EntireRow.Insert
End If
Next
Application.CutCopyMode = False
End Sub
"Rick" wrote:
> Dim Cnt As Integer
> I'm try to insert 5 new rows, then copy the previous row down thru the next
> 5 rows. I'm have some problem in getting it to work. Need help.
> Thanks
>
> Range("A" & SheetEnd).Select
> Set CpyCel = EndCel.Offset(-1, 0)
> Cnt = 5
> Do Until Cnt = 0
> Selection.EntireRow.Insert
> Cnt = Cnt - 1
> Loop
> RowStr = "" & CpyCel.Row & ":" & CDec(CpyCel.Row)
> Selection.EntireRow.Copy
>
|