I have a spread sheet that I have a macro on. What it basically does it takes data in Column A and repositions the data into 5 columns (Columns C - G) Basically it should act typing a letter where when it gets to Column G it now goes to the next row Column C then across and so on.
So for insance Cell "7A" will go to Cell "2C" and so on until the list in Column A is at the bottom.
I have some macro code:
_________________________________________
Range("A6").Select
Application.CutCopyMode = False
Selection.Copy
Range("C2").Select
ActiveSheet.Paste
Range("A7").Select
Application.CutCopyMode = False
Selection.Copy
Range("D2").Select
ActiveSheet.Paste
Range("A8").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Selection.Copy
Range("E2").Select
ActiveSheet.Paste
Range("A9").Select
Application.CutCopyMode = False
Selection.Copy
Range("F2").Select
ActiveSheet.Paste
Range("A10").Select
Application.CutCopyMode = False
Selection.Copy
Range("G2").Select
ActiveSheet.Paste
______________________________________
Now what I want to do is loop this instead of me recording a macro for 5000 cells.
I have found great help in the past and I am hoping somebody could offer a hand now. It would be greatly appreciated.
Essentially if I have 5000 pieces of data then it will be evenly split in to 5 columns 1000 each.
Another solutions would be to determine how many records I have below a certain row(lets say 5000) and then copy the first 1000 cells to Column C then the Second to Column D Just a thought.
Thank you
So for insance Cell "7A" will go to Cell "2C" and so on until the list in Column A is at the bottom.
I have some macro code:
_________________________________________
Range("A6").Select
Application.CutCopyMode = False
Selection.Copy
Range("C2").Select
ActiveSheet.Paste
Range("A7").Select
Application.CutCopyMode = False
Selection.Copy
Range("D2").Select
ActiveSheet.Paste
Range("A8").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Selection.Copy
Range("E2").Select
ActiveSheet.Paste
Range("A9").Select
Application.CutCopyMode = False
Selection.Copy
Range("F2").Select
ActiveSheet.Paste
Range("A10").Select
Application.CutCopyMode = False
Selection.Copy
Range("G2").Select
ActiveSheet.Paste
______________________________________
Now what I want to do is loop this instead of me recording a macro for 5000 cells.
I have found great help in the past and I am hoping somebody could offer a hand now. It would be greatly appreciated.
Essentially if I have 5000 pieces of data then it will be evenly split in to 5 columns 1000 each.
Another solutions would be to determine how many records I have below a certain row(lets say 5000) and then copy the first 1000 cells to Column C then the Second to Column D Just a thought.
Thank you