excel - Copy row, transpose and paste -
i need simple twist common vba code copy , paste columns/rows trying copy entire row in sheet 2 , transpose , paste them column , sheet1. first row in sheet1 has headings have paste them a2 extends whole column
sub transpose2() sheets(2).range("a1", cells(columns.count, "a").end(xlright)).copy sheets(1).range("a2").pastespecial transpose:=true range("a1").clearoutline end sub
this doesn't seem work. can me this? thank you!
sub transpose2() sheets(2) .range(.range("a1"), .cells(1, .columns.count).end(xltoleft)).copy end sheets(1).range("a2").pastespecial transpose:=true range("a1").clearoutline 'which sheet? end sub
Comments
Post a Comment