Hi
I have a worksheet containing several small datasets, example below:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Claim_number[/TD]
[TD]Model[/TD]
[TD]Name[/TD]
[TD]Value[/TD]
[/TR]
[TR]
[TD]zyx[/TD]
[TD]a[/TD]
[TD]b[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]pol[/TD]
[TD]c[/TD]
[TD]d[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]Claim_number[/TD]
[TD]Model[/TD]
[TD]Address[/TD]
[TD]Value[/TD]
[/TR]
[TR]
[TD]qwe[/TD]
[TD]e[/TD]
[TD]ab[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]asd[/TD]
[TD]f[/TD]
[TD]cd[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]zzd[/TD]
[TD]g[/TD]
[TD]ef[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]Claim_number[/TD]
[TD]Model[/TD]
[TD]Address[/TD]
[TD]Value[/TD]
[/TR]
[TR]
[TD]oko[/TD]
[TD]h[/TD]
[TD]gh[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]klo[/TD]
[TD]i[/TD]
[TD]ij[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
So that's how my worksheet looks like. I would like it to be split into multiple (three according to this example) worksheets. I thought it could be done by splitting if a certain column name is found, for example if vba encounters cell with a value "Claim_number", it transfers column names and below rows to a different worksheet. Or it could be done by splitting if there's a blank row between these small datasets. I just want something like that:
Worksheet1:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Claim_number[/TD]
[TD]Model[/TD]
[TD]Name[/TD]
[TD]Value[/TD]
[/TR]
[TR]
[TD]zyx[/TD]
[TD]a[/TD]
[TD]b[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]pol[/TD]
[TD]c[/TD]
[TD]d[/TD]
[TD]2
[/TD]
[/TR]
</tbody>[/TABLE]
Worksheet2:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Claim_number[/TD]
[TD]Model[/TD]
[TD]Address[/TD]
[TD]Value[/TD]
[/TR]
[TR]
[TD]qwe[/TD]
[TD]e[/TD]
[TD]ab[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]asd[/TD]
[TD]f[/TD]
[TD]cd[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]zzd[/TD]
[TD]g[/TD]
[TD]ef[/TD]
[TD]3
[/TD]
[/TR]
</tbody>[/TABLE]
Worksheet3:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Claim_number[/TD]
[TD]Model[/TD]
[TD]Address[/TD]
[TD]Value[/TD]
[/TR]
[TR]
[TD]oko[/TD]
[TD]h[/TD]
[TD]gh[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]klo[/TD]
[TD]i[/TD]
[TD]ij[/TD]
[TD]2
[/TD]
[/TR]
</tbody>[/TABLE]
Any ideas how to do that?
Thank you in advance!
****** id="cke_pastebin" style="position: absolute; top: 0px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">[TABLE="width: 500"]
<tbody>[TR]
[TD]Claim_number[/TD]
[TD]Model[/TD]
[TD]Address[/TD]
[TD]Value[/TD]
[/TR]
[TR]
[TD]qwe[/TD]
[TD]e[/TD]
[TD]ab[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]asd[/TD]
[TD]f[/TD]
[TD]cd[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]zzd[/TD]
[TD]g[/TD]
[TD]ef[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]
</body>
I have a worksheet containing several small datasets, example below:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Claim_number[/TD]
[TD]Model[/TD]
[TD]Name[/TD]
[TD]Value[/TD]
[/TR]
[TR]
[TD]zyx[/TD]
[TD]a[/TD]
[TD]b[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]pol[/TD]
[TD]c[/TD]
[TD]d[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]Claim_number[/TD]
[TD]Model[/TD]
[TD]Address[/TD]
[TD]Value[/TD]
[/TR]
[TR]
[TD]qwe[/TD]
[TD]e[/TD]
[TD]ab[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]asd[/TD]
[TD]f[/TD]
[TD]cd[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]zzd[/TD]
[TD]g[/TD]
[TD]ef[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]Claim_number[/TD]
[TD]Model[/TD]
[TD]Address[/TD]
[TD]Value[/TD]
[/TR]
[TR]
[TD]oko[/TD]
[TD]h[/TD]
[TD]gh[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]klo[/TD]
[TD]i[/TD]
[TD]ij[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
So that's how my worksheet looks like. I would like it to be split into multiple (three according to this example) worksheets. I thought it could be done by splitting if a certain column name is found, for example if vba encounters cell with a value "Claim_number", it transfers column names and below rows to a different worksheet. Or it could be done by splitting if there's a blank row between these small datasets. I just want something like that:
Worksheet1:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Claim_number[/TD]
[TD]Model[/TD]
[TD]Name[/TD]
[TD]Value[/TD]
[/TR]
[TR]
[TD]zyx[/TD]
[TD]a[/TD]
[TD]b[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]pol[/TD]
[TD]c[/TD]
[TD]d[/TD]
[TD]2
[/TD]
[/TR]
</tbody>[/TABLE]
Worksheet2:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Claim_number[/TD]
[TD]Model[/TD]
[TD]Address[/TD]
[TD]Value[/TD]
[/TR]
[TR]
[TD]qwe[/TD]
[TD]e[/TD]
[TD]ab[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]asd[/TD]
[TD]f[/TD]
[TD]cd[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]zzd[/TD]
[TD]g[/TD]
[TD]ef[/TD]
[TD]3
[/TD]
[/TR]
</tbody>[/TABLE]
Worksheet3:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Claim_number[/TD]
[TD]Model[/TD]
[TD]Address[/TD]
[TD]Value[/TD]
[/TR]
[TR]
[TD]oko[/TD]
[TD]h[/TD]
[TD]gh[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]klo[/TD]
[TD]i[/TD]
[TD]ij[/TD]
[TD]2
[/TD]
[/TR]
</tbody>[/TABLE]
Any ideas how to do that?
Thank you in advance!
****** id="cke_pastebin" style="position: absolute; top: 0px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">[TABLE="width: 500"]
<tbody>[TR]
[TD]Claim_number[/TD]
[TD]Model[/TD]
[TD]Address[/TD]
[TD]Value[/TD]
[/TR]
[TR]
[TD]qwe[/TD]
[TD]e[/TD]
[TD]ab[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]asd[/TD]
[TD]f[/TD]
[TD]cd[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]zzd[/TD]
[TD]g[/TD]
[TD]ef[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]
</body>