I'm trying to automate some tedious work tasks of duplicating selected rows and then adding an extra value in each and I am stuck on the latter part.
As you can see below, I am able to duplicate the rows of my selection but when I go to add a concurrent value the offsetting doesn't line up.
Ideally I would have it copy the row, assign a size value and then repeat that for each size before moving onto a new style.
Anyone able to point me in the right direction? Here is where I'm at:
Dim i As Long
For i = (Selection.Row + Selection.Rows.Count - 1) To Selection.Row Step -1
Rows(i).Copy
Range(Rows(i + 1), Rows(i + 1)).Insert Shift:=xlDown
Rows(i).Copy
Range(Rows(i + 1), Rows(i + 1)).Insert Shift:=xlDown
Rows(i).Copy
Range(Rows(i + 1), Rows(i + 1)).Insert Shift:=xlDown
Rows(i).Copy
Range(Rows(i + 1), Rows(i + 1)).Insert Shift:=xlDown
Rows(i).Copy
Range(Rows(i + 1), Rows(i + 1)).Insert Shift:=xlDown
ActiveCell.Offset(1, 2).Range("A1").Select
ActiveCell.FormulaR1C1 = "X-small"
ActiveCell.Offset(1, 0).Range("A1").Select
ActiveCell.FormulaR1C1 = "Small"
ActiveCell.Offset(1, 0).Range("A1").Select
ActiveCell.FormulaR1C1 = "Medium"
ActiveCell.Offset(1, 0).Range("A1").Select
ActiveCell.FormulaR1C1 = "Large"
ActiveCell.Offset(1, 0).Range("A1").Select
ActiveCell.FormulaR1C1 = "X-large"
ActiveCell.Offset(1, 0).Range("A1").Select
ActiveCell.FormulaR1C1 = "XX-Large"
Next i
End Sub
Initial Data Initial Data
Current result:

Desired outcome:

