Hello,
I am wanting to add a new sheet and copy each row of sheet1 5 times onto the new sheet. The data starts in A2 since the first row is the headers.
Thanks
Hello,
I am wanting to add a new sheet and copy each row of sheet1 5 times onto the new sheet. The data starts in A2 since the first row is the headers.
Thanks
Perhaps.
![]()
Sub Copy5() Dim rngSrc As Range Dim rngDst As Range Set rngSrc = Sheets("Sheet1").Range("A2") Sheets.Add Set rngDst = ActiveSheet.Range("A2") Do rngSrc.EntireRow.Copy rngDst.Resize(5) Set rngSrc = rngSrc.Offset(1) Set rngDst = rngDst.Offset(5) Loop Until rngSrc.Value="" End Sub
If posting code please use code tags, see here.
Thanks Norie. Does exactly what I was looking for.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks