Hi,
You now know you can use =TRANSPOSE(Range)
Suppose your range is 5 rows by 10 columns
select a range 10 rows by 5 columns and type, but do NOT enter the formula
Press Shift+Ctrl+Enter
The code to do the transpose command would be:
Sub Transpose()
myRange = InputBox("Enter the address of the range to transpose",
"Transpose")
Range(myRange).Copy
myTarget = InputBox("Enter the destination cell address.", "Transpose")
Range(myTarget).PasteSpecial Transpose:=True
End Sub
This is very simplistic, it would be better done with a user form. But you
might as well do it manually because its faster.
If this helps, please click the Yes button.