I am using VB to show large data in excel. They show up in A1:A3000. I am transposing A1:A6 to B1:G1 using this code:
sheet.Range(\"A1:A6\").Copy() sheet.Range(\
Does this work for you?
Sub Test() Dim R1 As Long, R2 As Long, C2 As Long R2 = 1 C2 = 2 For R1 = 1 To ActiveSheet.UsedRange.Rows.Count Cells(R2, C2) = Cells(R1, 1) If C2 < 7 Then C2 = C2 + 1 Else R2 = R2 + 1 C2 = 2 End If Next R1 End Sub