Transpose data from row to column

needassistance

New Member
Joined
Mar 23, 2011
Messages
10
I have more then 10000 data in signle range A:A
I want macro script to get transpose data from a1 to black cell, to any colume e.g c and so on as per data
when it transpose then collect data from next cell mean after last blank cell
and transpose again.
is it possible ?
if yes then please provide me script. Asap
Thanks for your attention.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Without a specific example I can't do anything more.

I guess you appreciate that having to operate on guesswork is a time waster for all participants.

You only need to provide a very simple example to illustrate what you want.
 
Upvote 0
One more guess. Does this modified code do what you maybe want?
Code:
Sub copyranges3()
Dim colnum As Integer, e As Range, rng
colnum = 3
Set e = Range("A1")
Do
    If e(2) = "" Then
        e.Copy Cells(1, colnum)
        Set e = e.End(4)
    Else
        Range(e, e.End(4)).Copy Cells(1, colnum)
        Set e = e.End(4).End(4)
    End If
colnum = colnum + 1
Loop Until e.Row = Rows.Count
With Range("C1")
    rng = .CurrentRegion.Value
    .CurrentRegion.ClearContents
    .Resize(UBound(rng, 2), UBound(rng, 1)) = Application.Transpose(rng)
End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,292
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top