سلام من 36ردیف داده سالانه به صورت افقی و 12 ردیف ماهانه به صورت عمودی دارم اگه بخوام همه اونا به ترتیب سال زیر هم در یک ستون قرار بگیرند چکار کنم
اینم نمونه ای از داده هام
Book2
اینم نمونه ای از داده هام
Book2
Sub Append() Dim LR As Long, LC As Integer, j As Integer LC = Cells(1, Columns.Count).End(xlToLeft).Column Range("a1").EntireColumn.Insert For j = 3 To LC + 1 LR = Cells(Rows.Count, j).End(xlUp).Row Range(Cells(2, j), Cells(LR, j)).Copy Destination:=Cells(Rows.Count, 1).End(xlUp).Offset(1) Next j End Sub
Sub Append() Dim LR As Long, LC As Integer, j As Integer LC = Cells(1, Columns.Count).End(xlToLeft).Column Range("a1").EntireColumn.Insert For j = 3 To LC + 1 LR = Cells(Rows.Count, j).End(xlUp).Row Range(Cells(2, j), Cells(LR, j)).Copy Destination:=Cells(Rows.Count, 1).End(xlUp).Offset(1) Next j End Sub
کامنت