Hi, I am trying to copy a range of data and paste it to every 4th column. For instance, Row 1 has 25 columns of datapoints, I want each datapoint to be 4 columns apart. Then again for Row 2 data... Row 3 data... on and so forth. I have the following code I edited from somewhere else, but it is pasting only one row of data to one column, with each data point spaced 4 rows apart. Can anyone help me see where it's gone wrong?
Sub Copy_Paste_nth()
Dim i As Long, r As Long
Dim Rng As Range
With Sheets("Sheet1")
Set Rng = .Range("A1:Y1", .Range("A" & Rows.Count).End(xlUp))
End With
For i = 2 To Rng.Count * 4 Step 4
r = r + 1
Sheets("Sheet2").Range("C" & i).Value = Rng(r).Value
Next i
End Sub
Sub Copy_Paste_nth()
Dim i As Long, r As Long
Dim Rng As Range
With Sheets("Sheet1")
Set Rng = .Range("A1:Y1", .Range("A" & Rows.Count).End(xlUp))
End With
For i = 2 To Rng.Count * 4 Step 4
r = r + 1
Sheets("Sheet2").Range("C" & i).Value = Rng(r).Value
Next i
End Sub