Hi guys, I wish to copy data from row to columns recursively. All I know is how to record macros. Kindly, help me edit the code.
Eg.
The data is in the following format, it is in one single column.
I want to copy the data in a new sheet as
The macro I recorded is like:
Please help me make this auto increment, I tried using offset, but, I could figure out proper way to use that.
Eg.
The data is in the following format, it is in one single column.
Code:
BRANCH1
ROW11
ROW12
ROW13
ROW14
ROW15
ROW16
;
BRANCH2
ROW21
ROW22
ROW23
ROW24
ROW25
ROW26
;
BRANCH3
ROW31
ROW32
ROW33
ROW34
ROW35
ROW36
;
I want to copy the data in a new sheet as
Code:
BRANCH1 ROW11 ROW12 ROW13 ROW14 ROW15 ROW16
BRANCH2 ROW21 ROW22 ROW23 ROW24 ROW25 ROW26
BRANCH3 ROW31 ROW32 ROW33 ROW34 ROW35 ROW36
The macro I recorded is like:
Code:
Sub Macro3()
'
' Macro3 Macro
' Macro recorded 8/14/2009 by
'
' Keyboard Shortcut: Ctrl+n
'
Range("A1:A6").Select
Selection.Copy
Range("B1").Select
Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True
End Sub
Please help me make this auto increment, I tried using offset, but, I could figure out proper way to use that.
Last edited: