Programatically Transpose

Nicole_Michelle01

Board Regular
Joined
Nov 9, 2005
Messages
50
What would the macro look like that would transpose every 14 rows from one worksheet into 14 columns on another worksheet.

Here's the process manually:

- From Worksheet1, select every 14 rows, Copy

- To Worksheet2, in ColumnA first cell in the next empty row, Paste Special, select Transpose


Thanks! ~ Nicole
 

Some videos you may like

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

sweater_vests_rock

Well-known Member
Joined
Oct 8, 2004
Messages
1,657
hi nicole (or michelle?)

it would look something like this:
Code:
Sub PasteTranspose()
'
    Sheets("Shee1").Rows("1:14").Copy
    Sheets("Sheet2").Activate
    Columns("A:A").PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
        False, Transpose:=True
End Sub
i'm assuming you literally want the whole row copied. is this correct?

ben.
 

Watch MrExcel Video

Forum statistics

Threads
1,118,017
Messages
5,569,640
Members
412,284
Latest member
Daibear
Top