smreinholtz
New Member
- Joined
- Jul 10, 2014
- Messages
- 11
Hello,
I have a macro request that may be difficult but I hope you are up for the challenge
I have a group of data that looks like this:
[TABLE="class: grid, width: 250"]
<tbody>[TR]
[TD]30004[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]30004[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]59684-1[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]59684-1[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]85201[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]85201[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]85201[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]85201[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]30898[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]30899[/TD]
[TD]A[/TD]
[/TR]
</tbody>[/TABLE]
As you can see, I the first column contains material numbers, while the second contains revision letters. What I need to do create a new row for each missing letter, stopping at the end of the material number group. So this previous data would become:
[TABLE="class: grid, width: 250"]
<tbody>[TR]
[TD]30004[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]30004[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]59684-1[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]59684-1[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]85201[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]85201[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]85201[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]85201[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]30899[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]30899[/TD]
[TD]A[/TD]
[/TR]
</tbody>[/TABLE]
Any thoughts? Thanks in advanced for you help!
I have a macro request that may be difficult but I hope you are up for the challenge
I have a group of data that looks like this:
[TABLE="class: grid, width: 250"]
<tbody>[TR]
[TD]30004[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]30004[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]59684-1[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]59684-1[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]85201[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]85201[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]85201[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]85201[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]30898[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]30899[/TD]
[TD]A[/TD]
[/TR]
</tbody>[/TABLE]
As you can see, I the first column contains material numbers, while the second contains revision letters. What I need to do create a new row for each missing letter, stopping at the end of the material number group. So this previous data would become:
[TABLE="class: grid, width: 250"]
<tbody>[TR]
[TD]30004[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]30004[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]59684-1[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]59684-1[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]85201[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]85201[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]85201[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]85201[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]30899[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]30899[/TD]
[TD]A[/TD]
[/TR]
</tbody>[/TABLE]
Any thoughts? Thanks in advanced for you help!