I need to take a sheet and reformat it as follows.
From this, where each letter represents one element per row.
A
B
C
D
E
F
to this where rows of 3 break into 3 columns
A B C
D E F
for the number of rows in the sheet.
I need to take a sheet and reformat it as follows.
From this, where each letter represents one element per row.
A
B
C
D
E
F
to this where rows of 3 break into 3 columns
A B C
D E F
for the number of rows in the sheet.
Last edited by SWMagic; 04-14-2013 at 04:08 PM. Reason: Bad, bad title
Assuming your data is in sheet1, this code will do. It creates a new sheet as an output
Please Login or Register to view this content.
If you have a header in row 1, change this line
INTOPlease Login or Register to view this content.
Please Login or Register to view this content.
NICE AB33, very nice!
This worked brilliantly! I did not have headers but that was just icing.
Your script worked very well indeed and I am quite grateful.
Paul
Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.
In future, to mark your thread as Solved, you can do the following -
Select Thread Tools-> Mark thread as Solved.
Incase your issue is not solved, you can undo it as follows -
Select Thread Tools-> Mark thread as Unsolved.
Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
If I have helped, Don't forget to add to my reputation (click on the star below the post)
Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
Use code tags when posting your VBA code: [code] Your code here [/code]
Paul,
You are welcome!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks