tryingmybest418
New Member
- Joined
- Jan 22, 2018
- Messages
- 32
I have a column of information and would like to find a way to translate it into rows using VBA. Every 3-7 rows in my existing column has a cell "New Record". I'd like the information below that cell to be laid out in a new row.
Currently:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]New Record[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4756[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]John Doe[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]123 Street Ave.[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Chicago, Illinois[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]451002[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]481002[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]New Record[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4869[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Jane Doe[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]New Record[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5012[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Jim Thompson[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]456 Street Ave.[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]New York, New York[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]451005[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]481005[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Would Like:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]New Record[/TD]
[TD]4756[/TD]
[TD]John Doe[/TD]
[TD]123 Street Ave.[/TD]
[TD]Chicago, Illinois[/TD]
[TD]451002[/TD]
[TD]481002[/TD]
[/TR]
[TR]
[TD]New Record[/TD]
[TD]4869[/TD]
[TD]Jane Doe[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]New Record[/TD]
[TD]5012[/TD]
[TD]Jim Thompson[/TD]
[TD]456 Street Ave.[/TD]
[TD]New York, New York[/TD]
[TD]451005[/TD]
[TD]481005[/TD]
[/TR]
</tbody>[/TABLE]
Thank you!
Currently:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]New Record[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4756[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]John Doe[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]123 Street Ave.[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Chicago, Illinois[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]451002[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]481002[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]New Record[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4869[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Jane Doe[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]New Record[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5012[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Jim Thompson[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]456 Street Ave.[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]New York, New York[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]451005[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]481005[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Would Like:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]New Record[/TD]
[TD]4756[/TD]
[TD]John Doe[/TD]
[TD]123 Street Ave.[/TD]
[TD]Chicago, Illinois[/TD]
[TD]451002[/TD]
[TD]481002[/TD]
[/TR]
[TR]
[TD]New Record[/TD]
[TD]4869[/TD]
[TD]Jane Doe[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]New Record[/TD]
[TD]5012[/TD]
[TD]Jim Thompson[/TD]
[TD]456 Street Ave.[/TD]
[TD]New York, New York[/TD]
[TD]451005[/TD]
[TD]481005[/TD]
[/TR]
</tbody>[/TABLE]
Thank you!