markjenkins
New Member
Hi
I have managed to record a macro that copies a row and then copies it 5 times and changes some wording in one of the coloumns, but when I run it, it will only copy the row I originally done in the recording , but I need it to do every row in the spreadsheet.
I have copied the macro below, any help would be really, really appreciated, thank you.
Rows("4:4").Select
Selection.Copy
Rows("5:5").Select
Selection.Insert Shift:=xlDown
Selection.Copy
Rows("6:6").Select
Selection.Insert Shift:=xlDown
Selection.Copy
Rows("7:7").Select
Selection.Insert Shift:=xlDown
Rows("7:7").Select
Selection.Copy
Rows("8:8").Select
Selection.Insert Shift:=xlDown
Selection.Copy
Rows("9:9").Select
Selection.Insert Shift:=xlDown
Range("D5").Select
ActiveCell.FormulaR1C1 = _
"10 DOWNING STREET LONDON CITY 12"" x 18"" CANVAS PRINT NO FRAME"
Range("D6").Select
ActiveCell.FormulaR1C1 = _
"10 DOWNING STREET LONDON CITY 16"" x 24"" CANVAS PRINT NO FRAME"
Range("D7").Select
ActiveCell.FormulaR1C1 = _
"10 DOWNING STREET LONDON CITY 20"" x 30"" CANVAS PRINT NO FRAME"
Range("D8").Select
ActiveCell.FormulaR1C1 = _
"10 DOWNING STREET LONDON CITY 24"" x 36"" CANVAS PRINT NO FRAME"
Range("D9").Select
ActiveCell.FormulaR1C1 = _
"10 DOWNING STREET LONDON CITY 28"" x 42"" CANVAS PRINT NO FRAME"
Range("A10").Select
End Sub
I have managed to record a macro that copies a row and then copies it 5 times and changes some wording in one of the coloumns, but when I run it, it will only copy the row I originally done in the recording , but I need it to do every row in the spreadsheet.
I have copied the macro below, any help would be really, really appreciated, thank you.
Rows("4:4").Select
Selection.Copy
Rows("5:5").Select
Selection.Insert Shift:=xlDown
Selection.Copy
Rows("6:6").Select
Selection.Insert Shift:=xlDown
Selection.Copy
Rows("7:7").Select
Selection.Insert Shift:=xlDown
Rows("7:7").Select
Selection.Copy
Rows("8:8").Select
Selection.Insert Shift:=xlDown
Selection.Copy
Rows("9:9").Select
Selection.Insert Shift:=xlDown
Range("D5").Select
ActiveCell.FormulaR1C1 = _
"10 DOWNING STREET LONDON CITY 12"" x 18"" CANVAS PRINT NO FRAME"
Range("D6").Select
ActiveCell.FormulaR1C1 = _
"10 DOWNING STREET LONDON CITY 16"" x 24"" CANVAS PRINT NO FRAME"
Range("D7").Select
ActiveCell.FormulaR1C1 = _
"10 DOWNING STREET LONDON CITY 20"" x 30"" CANVAS PRINT NO FRAME"
Range("D8").Select
ActiveCell.FormulaR1C1 = _
"10 DOWNING STREET LONDON CITY 24"" x 36"" CANVAS PRINT NO FRAME"
Range("D9").Select
ActiveCell.FormulaR1C1 = _
"10 DOWNING STREET LONDON CITY 28"" x 42"" CANVAS PRINT NO FRAME"
Range("A10").Select
End Sub