Excel - How to Convert / Reverse the Column Sequence from Right to Left -
i have got excel sheet around 50 columns in it. current data present in opposite sequence of required.
now how reverse column sequence in such way column @ end on right side, becomes first column on left side , on. need reverse order of columns.
i have found way display data in required format using method - file, options, advanced, tick: show sheet right left apply
but changes display , not real data within, when copy paste data sheet, again shows data in original / wrong sequence only.
please suggest how this.
thanks lot.
this small macro takes columns on sheet1 , copies them sheet2 in "flipped" order:
sub columnflipper() dim s1 worksheet, s2 worksheet set s1 = sheets("sheet1") set s2 = sheets("sheet2") dim m long, n long, long n = 1 s1 m = .cells(1, columns.count).end(xltoleft).column = m 1 step -1 .cells(1, i).entirecolumn.copy s2.cells(1, n) n = n + 1 next end end sub
modify sheetnames suit needs.
Comments
Post a Comment