Macro To Transpose

cfer

Well-known Member
Joined
Jul 29, 2002
Messages
560
Hi,

I have the following details.

I would likem to have a macro that can Transpose Each row from C5:O11

Starting at C14

After the first row is copied down, the next line needs to have a blank row to the start of the second row to be copied. All the rows need need to be copied down.
See atached HTML.

Thanks in advance Cfer
calteam3.xls
CDEFGHIJKLMNO
5RDO0600-14150600-14150600-14150600-1415RDORDO
6RDO1400-22151400-22151400-2215RDO0600-14150600-1800
70600-16000600-1430RDORDO1300-22301400-2230RDO
8RDO2200-06002200-06002200-06002200-0600#RDO
9RDORDO0600-14150600-14150600-14150600-14150700-1900
10RDO1400-22301400-22301400-2230RDO2200-06002200-0600
112130-0630#RDO0800-15001400-21301400-0000RDO
12
13
14RDO
15
160600-1415
17
180600-1415
19
200600-1415
21
220600-1415
23
24RDO
25
26RDO
27
28RDO
29
301400-2215
31
321400-2215
33
341400-2215
35
36RDO
37
380600-1415
39
400600-1800
41
420600-1600
43
440600-1430
45
46RDO
47
48RDO
49
501300-2230
51
521400-2230
53
54RDO
55
56RDO
57
582200-0600
59
602200-0600
Sheet1
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Try

Code:
Sub XPose()
Dim i As Integer, j As Integer, k As Integer
k = 12
For i = 5 To 11
    For j = 3 To 15 Step 2
        k = k + 2
        Cells(k, 3).Value = Cells(i, j).Value
    Next j
Next i
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,905
Messages
6,122,172
Members
449,071
Latest member
cdnMech

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