M myork Jun 3, 2010 #1 I need to copy a row and insert it 19 times in the rows below it, for 100+ rows.
G Gord Dibben Jun 4, 2010 #2 You have 100+ rows. One column or many columns of data? Each row is to be duplicated 19 times for a total of 1900+ rows when complete? You want to do this manually or by code? Gord Dibben MS Excel MVP
You have 100+ rows. One column or many columns of data? Each row is to be duplicated 19 times for a total of 1900+ rows when complete? You want to do this manually or by code? Gord Dibben MS Excel MVP
J Jacob Skaria Jun 4, 2010 #3 Try the below macro.. Sub MyMacro() Dim lngRow As Long lngRow = 1 Do While Range("A" & lngRow) <> "" Rows(lngRow).Offset(1).Resize(19).Insert Rows(lngRow).Copy Rows(lngRow + 1 & ":" & lngRow + 19) lngRow = lngRow + 20 Loop End Sub
Try the below macro.. Sub MyMacro() Dim lngRow As Long lngRow = 1 Do While Range("A" & lngRow) <> "" Rows(lngRow).Offset(1).Resize(19).Insert Rows(lngRow).Copy Rows(lngRow + 1 & ":" & lngRow + 19) lngRow = lngRow + 20 Loop End Sub