Hey guys,
I normally would find my own answers by searching the forums and looking at similar questions in the past. However this is a tricky one and I do not really know where to start. I would dearly appreciate any help with my query? ....
I have a spreadsheet, simplified for purposes of demonstrating the problem:
[TABLE="width: 384"]
<tbody>[TR]
[TD]Type[/TD]
[TD]Store[/TD]
[TD]Value[/TD]
[TD]France[/TD]
[TD]Germany[/TD]
[/TR]
[TR]
[TD]Colour[/TD]
[TD]UK[/TD]
[TD]Red[/TD]
[TD]Rouge[/TD]
[TD]Rot[/TD]
[/TR]
[TR]
[TD]Shape[/TD]
[TD]UK[/TD]
[TD]Round[/TD]
[TD]Ronde[/TD]
[TD]Rund[/TD]
[/TR]
[TR]
[TD]Colour[/TD]
[TD]UK[/TD]
[TD]Green[/TD]
[TD]Verte[/TD]
[TD]Grun[/TD]
[/TR]
</tbody>[/TABLE]
I am trying to write some VBA code into a Macro that I can run to produce this outcome:
[TABLE="width: 240"]
<tbody>[TR]
[TD]Type[/TD]
[TD]Store[/TD]
[TD]Value[/TD]
[/TR]
[TR]
[TD]Colour[/TD]
[TD]UK[/TD]
[TD]Red[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]FR[/TD]
[TD]Rouge[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]DE[/TD]
[TD]Rot[/TD]
[/TR]
[TR]
[TD]Shape[/TD]
[TD]UK[/TD]
[TD]Round[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]FR[/TD]
[TD]Ronde[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]DE[/TD]
[TD]Rund[/TD]
[/TR]
[TR]
[TD]Colour[/TD]
[TD]UK[/TD]
[TD]Green[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]FR[/TD]
[TD]Verte[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]DE[/TD]
[TD]Grun[/TD]
[/TR]
</tbody>[/TABLE]
So basically it loops through each row, inserts two rows underneath and then copies France into the first added row and Germany into the second.
I hope that makes sense and I am more than happy to provide any further clarification. Many thanks in advance.
Yours hopefully,
Paul
I normally would find my own answers by searching the forums and looking at similar questions in the past. However this is a tricky one and I do not really know where to start. I would dearly appreciate any help with my query? ....
I have a spreadsheet, simplified for purposes of demonstrating the problem:
[TABLE="width: 384"]
<tbody>[TR]
[TD]Type[/TD]
[TD]Store[/TD]
[TD]Value[/TD]
[TD]France[/TD]
[TD]Germany[/TD]
[/TR]
[TR]
[TD]Colour[/TD]
[TD]UK[/TD]
[TD]Red[/TD]
[TD]Rouge[/TD]
[TD]Rot[/TD]
[/TR]
[TR]
[TD]Shape[/TD]
[TD]UK[/TD]
[TD]Round[/TD]
[TD]Ronde[/TD]
[TD]Rund[/TD]
[/TR]
[TR]
[TD]Colour[/TD]
[TD]UK[/TD]
[TD]Green[/TD]
[TD]Verte[/TD]
[TD]Grun[/TD]
[/TR]
</tbody>[/TABLE]
I am trying to write some VBA code into a Macro that I can run to produce this outcome:
[TABLE="width: 240"]
<tbody>[TR]
[TD]Type[/TD]
[TD]Store[/TD]
[TD]Value[/TD]
[/TR]
[TR]
[TD]Colour[/TD]
[TD]UK[/TD]
[TD]Red[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]FR[/TD]
[TD]Rouge[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]DE[/TD]
[TD]Rot[/TD]
[/TR]
[TR]
[TD]Shape[/TD]
[TD]UK[/TD]
[TD]Round[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]FR[/TD]
[TD]Ronde[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]DE[/TD]
[TD]Rund[/TD]
[/TR]
[TR]
[TD]Colour[/TD]
[TD]UK[/TD]
[TD]Green[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]FR[/TD]
[TD]Verte[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]DE[/TD]
[TD]Grun[/TD]
[/TR]
</tbody>[/TABLE]
So basically it loops through each row, inserts two rows underneath and then copies France into the first added row and Germany into the second.
I hope that makes sense and I am more than happy to provide any further clarification. Many thanks in advance.
Yours hopefully,
Paul