A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
try this,
Sub ConvertData_02()
'Oct 31, 2014
Const nH As Long = 2 '<< number of headers
Const N As Long = 3 '<<< data starts in row 3
Dim ws As Worksheet
Set ws = Sheets("Sheet1") '<< source sheet
Dim r As Long, c As Long, x As Long, t As Long
r = ws.Cells(Rows.Count, "A").End(xlUp).Row
c = ws.Cells(1, Columns.Count).End(xlToLeft).Column
Application.ScreenUpdating = False
Sheets.Add
t = 1
For x = 3 To c
ws.Range("A" & N).Resize(r - nH, 2).Copy
Cells(t, "A").PasteSpecial xlPasteValues
ws.Cells(1, x).Resize(nH).Copy
Cells(t, "c").Resize(r - nH).PasteSpecial xlPasteValues, Transpose:=True
ws.Cells(N, x).Resize(r - nH).Copy
Cells(t, nH + 3).PasteSpecial xlPasteValues
t = Cells(Rows.Count, "A").End(xlUp).Row + 1
Next
Application.CutCopyMode = False
[A1].Select
ActiveSheet.UsedRange.EntireColumn.AutoFit
Application.ScreenUpdating = True
End Sub
here..