ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   HELP on TRANSPOSE related function. (https://www.excelbanter.com/excel-programming/330648-re-help-transpose-related-function.html)

jindon[_4_]

HELP on TRANSPOSE related function.
 

Hi,

try the code

Code
-------------------

Sub test()
Dim a
With Range("a1").CurrentRegion
a = .Value
.Clear
End With
For i = LBound(a, 1) To UBound(a, 1)
For ii = LBound(a, 2) To UBound(a, 2)
iii = iii + 1: Range("a" & iii) = a(i, ii)
Next
Next
End Sub

-------------------

sunj99 Wrote:
HELP PLEASE!

I have a large excel spreadsheet. The layout is like this:

A SDF ED
B EFD BR
C ERT RT

How do I transpose everything using VB so they are in one column lik
this:

A
SDF
ED
B
EFD
BR
C
ERT
RT

THANKS A LOT!


--
jindo
-----------------------------------------------------------------------
jindon's Profile: http://www.excelforum.com/member.php...fo&userid=1313
View this thread: http://www.excelforum.com/showthread.php?threadid=37566



All times are GMT +1. The time now is 04:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com