Hi and welcome to the forum!
Please use code tags around the vba code. (updated for you)
As far as the macro goes, I'm confused as to exactly what you want to do. Are you trying to transpose multiple columns, i.e. column A, column B, etc., or multiple rows, i.e. row 1, row 2, etc.? Because, in this part of your macro
Sheets("Sheet1").Range("a" & i & ":a" & i + 13).Copy you have hard-coded in to only copy data from column A. If you wanted to copy rows, you could change this line to something like this
Sheets("Sheet1").Range("a" & i & ":f" & i).Copy which would give you this macro:
- Code: Select all
Sub Transpose()
Dim a As Long
'Dim b As Long
Dim C As Long
Dim i As Long
a = Sheets("Sheet1").UsedRange.Rows.Count
C = 1
For i = 1 To a Step 14
Sheets("Sheet1").Range("a" & i & ":f" & i).Copy
Sheets("Sheet2").Range("a" & C).PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:=False, Transpose:=True
C = C + 1
Next i
End Sub
Note that I updated the indenting in the macro, which makes it much easier to read. Also, I didn't test this yet, just updated it to use row references in that one line.
hope this helps!