Hi Team,
I have a bunch of data in a table that I need into a column set up as per the below.
Base Data
[TABLE="class: grid, width: 250, align: center"]
<tbody>[TR]
[TD][/TD]
[TD]QWE[/TD]
[TD]ASD[/TD]
[TD]ZXC[/TD]
[TD]RTY[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]10[/TD]
[TD][/TD]
[TD]20[/TD]
[TD]30[/TD]
[/TR]
[TR]
[TD]DEF[/TD]
[TD][/TD]
[TD]40[/TD]
[TD]50[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]GHI[/TD]
[TD]60[/TD]
[TD][/TD]
[TD]70[/TD]
[TD]80[/TD]
[/TR]
[TR]
[TD]JKL[/TD]
[TD][/TD]
[TD]90[/TD]
[TD][/TD]
[TD]100[/TD]
[/TR]
</tbody>[/TABLE]
Formatted Data
[TABLE="class: grid, width: 250, align: center"]
<tbody>[TR]
[TD]Head 1
[/TD]
[TD]Head 2
[/TD]
[TD]Head 3
[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]10[/TD]
[TD]QWE[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]20[/TD]
[TD]ZXC[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]30[/TD]
[TD]RTY[/TD]
[/TR]
[TR]
[TD]DEF[/TD]
[TD]40[/TD]
[TD]ASD[/TD]
[/TR]
[TR]
[TD]DEF[/TD]
[TD]50[/TD]
[TD]ZXC[/TD]
[/TR]
[TR]
[TD]GHI[/TD]
[TD]60[/TD]
[TD]QWE[/TD]
[/TR]
[TR]
[TD]GHI[/TD]
[TD]70[/TD]
[TD]ZXC[/TD]
[/TR]
[TR]
[TD]GHI[/TD]
[TD]80[/TD]
[TD]RTY[/TD]
[/TR]
[TR]
[TD]JKL[/TD]
[TD]90[/TD]
[TD]ASD[/TD]
[/TR]
[TR]
[TD]JKL[/TD]
[TD]100[/TD]
[TD]RTY[/TD]
[/TR]
</tbody>[/TABLE]
Is there a way to do this in VBA?
I have a bunch of data in a table that I need into a column set up as per the below.
Base Data
[TABLE="class: grid, width: 250, align: center"]
<tbody>[TR]
[TD][/TD]
[TD]QWE[/TD]
[TD]ASD[/TD]
[TD]ZXC[/TD]
[TD]RTY[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]10[/TD]
[TD][/TD]
[TD]20[/TD]
[TD]30[/TD]
[/TR]
[TR]
[TD]DEF[/TD]
[TD][/TD]
[TD]40[/TD]
[TD]50[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]GHI[/TD]
[TD]60[/TD]
[TD][/TD]
[TD]70[/TD]
[TD]80[/TD]
[/TR]
[TR]
[TD]JKL[/TD]
[TD][/TD]
[TD]90[/TD]
[TD][/TD]
[TD]100[/TD]
[/TR]
</tbody>[/TABLE]
Formatted Data
[TABLE="class: grid, width: 250, align: center"]
<tbody>[TR]
[TD]Head 1
[/TD]
[TD]Head 2
[/TD]
[TD]Head 3
[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]10[/TD]
[TD]QWE[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]20[/TD]
[TD]ZXC[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]30[/TD]
[TD]RTY[/TD]
[/TR]
[TR]
[TD]DEF[/TD]
[TD]40[/TD]
[TD]ASD[/TD]
[/TR]
[TR]
[TD]DEF[/TD]
[TD]50[/TD]
[TD]ZXC[/TD]
[/TR]
[TR]
[TD]GHI[/TD]
[TD]60[/TD]
[TD]QWE[/TD]
[/TR]
[TR]
[TD]GHI[/TD]
[TD]70[/TD]
[TD]ZXC[/TD]
[/TR]
[TR]
[TD]GHI[/TD]
[TD]80[/TD]
[TD]RTY[/TD]
[/TR]
[TR]
[TD]JKL[/TD]
[TD]90[/TD]
[TD]ASD[/TD]
[/TR]
[TR]
[TD]JKL[/TD]
[TD]100[/TD]
[TD]RTY[/TD]
[/TR]
</tbody>[/TABLE]
Is there a way to do this in VBA?