[FONT=Fixedsys]Option Explicit[/FONT]
[FONT=Fixedsys][/FONT]
[FONT=Fixedsys]Public Sub TransposeData()[/FONT]
[FONT=Fixedsys][/FONT]
[FONT=Fixedsys] Dim ws As Worksheet
Dim wkbk As Workbook
Dim iLastCol As Integer
Set ws = ThisWorkbook.Sheets(1)
Set wkbk = Workbooks.Add
iLastCol = ws.Cells(1, ws.Columns.Count).End(xlToLeft).Column
ws.Range("B1").Resize(2, iLastCol - 1).Copy
With wkbk.Sheets(1)
.Range("A1").PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:=False, Transpose:=True
.Columns("A:B").ColumnWidth = 100
.Columns("A:B").EntireColumn.AutoFit
.Rows("1:" & iLastCol).RowHeight = 30
.Rows("1:" & iLastCol).EntireRow.AutoFit
End With[/FONT]
[FONT=Fixedsys][/FONT]
[FONT=Fixedsys]End Sub[/FONT]