Please see my code below.
I have a list of data in columns A to R in sheet7
.
I need to copy the data from row 1 columns A-F to the first 12 rows of sheet6, starting in row E.
After doing this I need to transpose the data in sheet7
from row 1 columns G-R to sheet6 to column Q (rows 1-12).
Thanks in advance. Question is when running code I am getting a "Run-time error 13, Type Mismatch". When using F8 to locate issue I cannot see where it occurs. I get past the msgbox part of code.
This needs to be repeated many times to complete all data.
Sub copy1()
Dim i As Long
Dim j As Long
j = 2
MsgBox (j)
For i = 2 To 1000
Worksheets(Sheet7).Activate
Range(Cells(i, 1), Cells(i, 6)).Select
Selection.copy
Worksheets(Sheet6).Activate
Range(Cells(j, 5), Cells(j + 11, 5)).PasteSpecial
Worksheets(Sheet7).Activate
Range(Cells(i, 7), Cells(i, 18)).Select
Selection.copy
Worksheets(Sheet6).Activate
Range(Cells(j, 17).Address).PasteSpecial Transpose:=True
j = j + 12
Next i
End Sub