Hello All Experts,
I have a standard template column A-D and variable value column G-H.
I would like to copy and past a variable value into a standard template then repeat it until the last row of variable value.
After some searching within the board, I could came up with below codes but still has no idea how to add variable value into the copy loop.
Codes;
I've attached a snapshot below in case my English might confuse you.
I have a standard template column A-D and variable value column G-H.
I would like to copy and past a variable value into a standard template then repeat it until the last row of variable value.
After some searching within the board, I could came up with below codes but still has no idea how to add variable value into the copy loop.
Codes;
Sub Copy()
Dim i As Long
For i = 1 To Worksheets("Sheet1").Range("J1").Value
Range("A2:D7").Select
Selection.Copy
Range("A2").Offset(6 * i, 0).Select
Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Next i
End Sub
I've attached a snapshot below in case my English might confuse you.