theloveofwisdom
New Member
- Joined
- Nov 20, 2015
- Messages
- 10
Salutations!!
I'm looking for a solution to this problem in vba. I'd like to take data from the chart below which is in sheet 1....
[TABLE="width: 610"]
<tbody>[TR]
[TD][/TD]
[TD]First Name[/TD]
[TD]Last Name[/TD]
[TD]Number of Tickets[/TD]
[TD]Ticket Numbers[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Annie[/TD]
[TD]smith[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Mari[/TD]
[TD]jones[/TD]
[TD]2[/TD]
[TD]2;3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Steve[/TD]
[TD]smith[/TD]
[TD]3[/TD]
[TD]4;5;6[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Nick[/TD]
[TD]jones[/TD]
[TD]4[/TD]
[TD]7;8;9;10[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Nick[/TD]
[TD]smith[/TD]
[TD]5[/TD]
[TD]11;12;13;14;15[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
..... and parse the delimiter and paste it as such into sheet 2 as below.
[TABLE="width: 513"]
<tbody>[TR]
[TD]First Name[/TD]
[TD]Last Name[/TD]
[TD]Number of Tickets[/TD]
[TD]Ticket Numbers[/TD]
[/TR]
[TR]
[TD]Annie[/TD]
[TD]smith[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Mari[/TD]
[TD]jones[/TD]
[TD]2[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Mari[/TD]
[TD]jones[/TD]
[TD]2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Steve[/TD]
[TD]smith[/TD]
[TD]3[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Steve[/TD]
[TD]smith[/TD]
[TD]3[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Steve[/TD]
[TD]smith[/TD]
[TD]3[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]Nick[/TD]
[TD]jones[/TD]
[TD]4[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]Nick[/TD]
[TD]jones[/TD]
[TD]4[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]Nick[/TD]
[TD]jones[/TD]
[TD]4[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]Nick[/TD]
[TD]jones[/TD]
[TD]4[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]Nick[/TD]
[TD]smith[/TD]
[TD]5[/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD]Nick[/TD]
[TD]smith[/TD]
[TD]5[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]Nick[/TD]
[TD]smith[/TD]
[TD]5[/TD]
[TD]13[/TD]
[/TR]
[TR]
[TD]Nick[/TD]
[TD]smith[/TD]
[TD]5[/TD]
[TD]14[/TD]
[/TR]
[TR]
[TD]Nick[/TD]
[TD]smith[/TD]
[TD]5[/TD]
[TD]15[/TD]
[/TR]
</tbody>[/TABLE]
Any input would be much appreciated!
Godspeed.
I'm looking for a solution to this problem in vba. I'd like to take data from the chart below which is in sheet 1....
[TABLE="width: 610"]
<tbody>[TR]
[TD][/TD]
[TD]First Name[/TD]
[TD]Last Name[/TD]
[TD]Number of Tickets[/TD]
[TD]Ticket Numbers[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Annie[/TD]
[TD]smith[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Mari[/TD]
[TD]jones[/TD]
[TD]2[/TD]
[TD]2;3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Steve[/TD]
[TD]smith[/TD]
[TD]3[/TD]
[TD]4;5;6[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Nick[/TD]
[TD]jones[/TD]
[TD]4[/TD]
[TD]7;8;9;10[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Nick[/TD]
[TD]smith[/TD]
[TD]5[/TD]
[TD]11;12;13;14;15[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
..... and parse the delimiter and paste it as such into sheet 2 as below.
[TABLE="width: 513"]
<tbody>[TR]
[TD]First Name[/TD]
[TD]Last Name[/TD]
[TD]Number of Tickets[/TD]
[TD]Ticket Numbers[/TD]
[/TR]
[TR]
[TD]Annie[/TD]
[TD]smith[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Mari[/TD]
[TD]jones[/TD]
[TD]2[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Mari[/TD]
[TD]jones[/TD]
[TD]2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Steve[/TD]
[TD]smith[/TD]
[TD]3[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Steve[/TD]
[TD]smith[/TD]
[TD]3[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Steve[/TD]
[TD]smith[/TD]
[TD]3[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]Nick[/TD]
[TD]jones[/TD]
[TD]4[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]Nick[/TD]
[TD]jones[/TD]
[TD]4[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]Nick[/TD]
[TD]jones[/TD]
[TD]4[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]Nick[/TD]
[TD]jones[/TD]
[TD]4[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]Nick[/TD]
[TD]smith[/TD]
[TD]5[/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD]Nick[/TD]
[TD]smith[/TD]
[TD]5[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]Nick[/TD]
[TD]smith[/TD]
[TD]5[/TD]
[TD]13[/TD]
[/TR]
[TR]
[TD]Nick[/TD]
[TD]smith[/TD]
[TD]5[/TD]
[TD]14[/TD]
[/TR]
[TR]
[TD]Nick[/TD]
[TD]smith[/TD]
[TD]5[/TD]
[TD]15[/TD]
[/TR]
</tbody>[/TABLE]
Any input would be much appreciated!
Godspeed.