I'm looking to make a macro that takes data in column A and seperate it into three columns. I'm able to do it by setting up the macro manually, but is there a way to loop it to do it automatically as long as there is information in column A?
-------------------------------------------------------
This is what I've got:
A B C
1
2
3
1
2
3
1
2
3
This is what I want it to do:
A B C
1 2 3
1 2 3
1 2 3
-------------------------------------------------------
I've got code from a macro, but I only did two lines as an example and I was wondering if anyone knew how to code it to run through the entire column or until this isn't any data left in column A.
Thanks for any help in advance.
This is the macro code that I have for just running the 2 columns.
ActiveCell.Offset(1, 0).Range("A1").Select
Selection.Cut Destination:=ActiveCell.Offset(-1, 1).Range("A1")
ActiveCell.Offset(1, 0).Range("A1").Select
Selection.Cut Destination:=ActiveCell.Offset(-2, 2).Range("A1")
ActiveCell.Offset(1, 0).Range("A1").Select
Selection.Cut Destination:=ActiveCell.Offset(-2, 0).Range("A1")
ActiveCell.Offset(1, 0).Range("A1").Select
Selection.Cut Destination:=ActiveCell.Offset(-3, 1).Range("A1")
ActiveCell.Offset(1, 0).Range("A1").Select
Selection.Cut Destination:=ActiveCell.Offset(-4, 2).Range("A1")
ActiveCell.Offset(-4, 2).Range("A1").Select
-------------------------------------------------------
This is what I've got:
A B C
1
2
3
1
2
3
1
2
3
This is what I want it to do:
A B C
1 2 3
1 2 3
1 2 3
-------------------------------------------------------
I've got code from a macro, but I only did two lines as an example and I was wondering if anyone knew how to code it to run through the entire column or until this isn't any data left in column A.
Thanks for any help in advance.
This is the macro code that I have for just running the 2 columns.
ActiveCell.Offset(1, 0).Range("A1").Select
Selection.Cut Destination:=ActiveCell.Offset(-1, 1).Range("A1")
ActiveCell.Offset(1, 0).Range("A1").Select
Selection.Cut Destination:=ActiveCell.Offset(-2, 2).Range("A1")
ActiveCell.Offset(1, 0).Range("A1").Select
Selection.Cut Destination:=ActiveCell.Offset(-2, 0).Range("A1")
ActiveCell.Offset(1, 0).Range("A1").Select
Selection.Cut Destination:=ActiveCell.Offset(-3, 1).Range("A1")
ActiveCell.Offset(1, 0).Range("A1").Select
Selection.Cut Destination:=ActiveCell.Offset(-4, 2).Range("A1")
ActiveCell.Offset(-4, 2).Range("A1").Select