I am new to VBA scripting - and have been trying to - copy values from sheet 1 "C1:P1" and pasting them in another sheet, say Sheet 2, in the column H (beginning from H2 to H2500). Basically the code needs to copy the values, transpose them and paste them.
Sub Run()
'
' Run Macro
'
Dim i As Long
For i = 1 To 2500
Sheets("Sheet1").Range("C1:P1").Select
Selection.Copy
Sheets("Sheet2").Range("H2:H2500" & i).Offset(13 * i, 0).Select
Selection.PasteSpecial Paste:=x1PasteFormulas, Operation:=x1None, Skipblanks:= _
False, Transpose:=True
Next i
End Sub
The values for Sheet 1 from C1 to P1 have to be copied and pasted into the column H in Sheet 2, each Value gets pasted 13 times, AND there are a total of 165 values to be copied over into sheet 2(column H). The Run time error '1004' is 'Select method of range class failed', any help would be appreciated!! :)