I'm having a issue to split my data set into multiple sheets with specify number of rows with their headers from input sheet.
I want to use Excel-VBA to solve this, Thank you...
Example: My input dataset
[TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Name[/TD]
[TD="class: xl65, width: 64"]Cost[/TD]
[/TR]
[TR]
[TD="class: xl65"]Dew[/TD]
[TD="class: xl65, align: right"]12000[/TD]
[/TR]
[TR]
[TD="class: xl65"]Dew[/TD]
[TD="class: xl65, align: right"]12001[/TD]
[/TR]
[TR]
[TD="class: xl65"]Dew[/TD]
[TD="class: xl65, align: right"]12002[/TD]
[/TR]
[TR]
[TD="class: xl65"]Dew[/TD]
[TD="class: xl65, align: right"]12003[/TD]
[/TR]
[TR]
[TD="class: xl65"]Dew[/TD]
[TD="class: xl65, align: right"]12004[/TD]
[/TR]
[TR]
[TD="class: xl65"]Dew[/TD]
[TD="class: xl65, align: right"]12005[/TD]
[/TR]
[TR]
[TD="class: xl65"]Dew[/TD]
[TD="class: xl65, align: right"]12006[/TD]
[/TR]
[TR]
[TD="class: xl65"]Dew[/TD]
[TD="class: xl65, align: right"]12007[/TD]
[/TR]
[TR]
[TD="class: xl65"]Aun[/TD]
[TD="class: xl65, align: right"]987000[/TD]
[/TR]
[TR]
[TD="class: xl65"]Aun[/TD]
[TD="class: xl65, align: right"]987001[/TD]
[/TR]
[TR]
[TD="class: xl65"]Aun[/TD]
[TD="class: xl65, align: right"]987002[/TD]
[/TR]
[TR]
[TD="class: xl65"]Aun[/TD]
[TD="class: xl65, align: right"]987003[/TD]
[/TR]
[TR]
[TD="class: xl65"]Aun[/TD]
[TD="class: xl65, align: right"]987004[/TD]
[/TR]
[TR]
[TD="class: xl65"]Aun[/TD]
[TD="class: xl65, align: right"]987005[/TD]
[/TR]
[TR]
[TD="class: xl65"]Aun[/TD]
[TD="class: xl65, align: right"]987006[/TD]
[/TR]
[TR]
[TD="class: xl65"]Aun[/TD]
[TD="class: xl65, align: right"]987007[/TD]
[/TR]
[TR]
[TD="class: xl65"]Aun[/TD]
[TD="class: xl65, align: right"]987008[/TD]
[/TR]
[TR]
[TD="class: xl65"]Fon[/TD]
[TD="class: xl65, align: right"]98752.25[/TD]
[/TR]
[TR]
[TD="class: xl65"]Fon[/TD]
[TD="class: xl65, align: right"]98753.25[/TD]
[/TR]
[TR]
[TD="class: xl65"]Fon[/TD]
[TD="class: xl65, align: right"]98754.25[/TD]
[/TR]
[TR]
[TD="class: xl65"]Fon[/TD]
[TD="class: xl65, align: right"]98755.25[/TD]
[/TR]
[TR]
[TD="class: xl65"]Fon[/TD]
[TD="class: xl65, align: right"]98756.25[/TD]
[/TR]
[TR]
[TD="class: xl65"]Fon[/TD]
[TD="class: xl65, align: right"]98757.25[/TD]
[/TR]
[TR]
[TD="class: xl65"]Fon[/TD]
[TD="class: xl65, align: right"]98758.25[/TD]
[/TR]
[TR]
[TD="class: xl65"]Fon[/TD]
[TD="class: xl65, align: right"]98759.25[/TD]
[/TR]
</tbody>[/TABLE]
These are the output table that i'm looking for.
Sheet1, Sheet2, etc are the output sheets that i want to get. **Each of my sheets can contain only 6 rows(header included).
Sheet1:
[TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Name[/TD]
[TD="class: xl65, width: 64"]Cost[/TD]
[/TR]
[TR]
[TD="class: xl65"]Dew[/TD]
[TD="class: xl65, align: right"]12000[/TD]
[/TR]
[TR]
[TD="class: xl65"]Dew[/TD]
[TD="class: xl65, align: right"]12001[/TD]
[/TR]
[TR]
[TD="class: xl65"]Dew[/TD]
[TD="class: xl65, align: right"]12002[/TD]
[/TR]
[TR]
[TD="class: xl65"]Dew[/TD]
[TD="class: xl65, align: right"]12003[/TD]
[/TR]
[TR]
[TD="class: xl65"]Dew[/TD]
[TD="class: xl65, align: right"]12004[/TD]
[/TR]
</tbody>[/TABLE]
Sheet2:
[TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Name[/TD]
[TD="class: xl65, width: 64"]Cost[/TD]
[/TR]
[TR]
[TD="class: xl65"]Dew[/TD]
[TD="class: xl65, align: right"]12005[/TD]
[/TR]
[TR]
[TD="class: xl65"]Dew[/TD]
[TD="class: xl65, align: right"]12006[/TD]
[/TR]
[TR]
[TD="class: xl65"]Dew[/TD]
[TD="class: xl65, align: right"]12007[/TD]
[/TR]
[TR]
[TD="class: xl65"]Aun[/TD]
[TD="class: xl65, align: right"]987000[/TD]
[/TR]
[TR]
[TD="class: xl65"]Aun[/TD]
[TD="class: xl65, align: right"]987001[/TD]
[/TR]
</tbody>[/TABLE]
I want to use Excel-VBA to solve this, Thank you...
Example: My input dataset
[TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Name[/TD]
[TD="class: xl65, width: 64"]Cost[/TD]
[/TR]
[TR]
[TD="class: xl65"]Dew[/TD]
[TD="class: xl65, align: right"]12000[/TD]
[/TR]
[TR]
[TD="class: xl65"]Dew[/TD]
[TD="class: xl65, align: right"]12001[/TD]
[/TR]
[TR]
[TD="class: xl65"]Dew[/TD]
[TD="class: xl65, align: right"]12002[/TD]
[/TR]
[TR]
[TD="class: xl65"]Dew[/TD]
[TD="class: xl65, align: right"]12003[/TD]
[/TR]
[TR]
[TD="class: xl65"]Dew[/TD]
[TD="class: xl65, align: right"]12004[/TD]
[/TR]
[TR]
[TD="class: xl65"]Dew[/TD]
[TD="class: xl65, align: right"]12005[/TD]
[/TR]
[TR]
[TD="class: xl65"]Dew[/TD]
[TD="class: xl65, align: right"]12006[/TD]
[/TR]
[TR]
[TD="class: xl65"]Dew[/TD]
[TD="class: xl65, align: right"]12007[/TD]
[/TR]
[TR]
[TD="class: xl65"]Aun[/TD]
[TD="class: xl65, align: right"]987000[/TD]
[/TR]
[TR]
[TD="class: xl65"]Aun[/TD]
[TD="class: xl65, align: right"]987001[/TD]
[/TR]
[TR]
[TD="class: xl65"]Aun[/TD]
[TD="class: xl65, align: right"]987002[/TD]
[/TR]
[TR]
[TD="class: xl65"]Aun[/TD]
[TD="class: xl65, align: right"]987003[/TD]
[/TR]
[TR]
[TD="class: xl65"]Aun[/TD]
[TD="class: xl65, align: right"]987004[/TD]
[/TR]
[TR]
[TD="class: xl65"]Aun[/TD]
[TD="class: xl65, align: right"]987005[/TD]
[/TR]
[TR]
[TD="class: xl65"]Aun[/TD]
[TD="class: xl65, align: right"]987006[/TD]
[/TR]
[TR]
[TD="class: xl65"]Aun[/TD]
[TD="class: xl65, align: right"]987007[/TD]
[/TR]
[TR]
[TD="class: xl65"]Aun[/TD]
[TD="class: xl65, align: right"]987008[/TD]
[/TR]
[TR]
[TD="class: xl65"]Fon[/TD]
[TD="class: xl65, align: right"]98752.25[/TD]
[/TR]
[TR]
[TD="class: xl65"]Fon[/TD]
[TD="class: xl65, align: right"]98753.25[/TD]
[/TR]
[TR]
[TD="class: xl65"]Fon[/TD]
[TD="class: xl65, align: right"]98754.25[/TD]
[/TR]
[TR]
[TD="class: xl65"]Fon[/TD]
[TD="class: xl65, align: right"]98755.25[/TD]
[/TR]
[TR]
[TD="class: xl65"]Fon[/TD]
[TD="class: xl65, align: right"]98756.25[/TD]
[/TR]
[TR]
[TD="class: xl65"]Fon[/TD]
[TD="class: xl65, align: right"]98757.25[/TD]
[/TR]
[TR]
[TD="class: xl65"]Fon[/TD]
[TD="class: xl65, align: right"]98758.25[/TD]
[/TR]
[TR]
[TD="class: xl65"]Fon[/TD]
[TD="class: xl65, align: right"]98759.25[/TD]
[/TR]
</tbody>[/TABLE]
These are the output table that i'm looking for.
Sheet1, Sheet2, etc are the output sheets that i want to get. **Each of my sheets can contain only 6 rows(header included).
Sheet1:
[TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Name[/TD]
[TD="class: xl65, width: 64"]Cost[/TD]
[/TR]
[TR]
[TD="class: xl65"]Dew[/TD]
[TD="class: xl65, align: right"]12000[/TD]
[/TR]
[TR]
[TD="class: xl65"]Dew[/TD]
[TD="class: xl65, align: right"]12001[/TD]
[/TR]
[TR]
[TD="class: xl65"]Dew[/TD]
[TD="class: xl65, align: right"]12002[/TD]
[/TR]
[TR]
[TD="class: xl65"]Dew[/TD]
[TD="class: xl65, align: right"]12003[/TD]
[/TR]
[TR]
[TD="class: xl65"]Dew[/TD]
[TD="class: xl65, align: right"]12004[/TD]
[/TR]
</tbody>[/TABLE]
Sheet2:
[TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Name[/TD]
[TD="class: xl65, width: 64"]Cost[/TD]
[/TR]
[TR]
[TD="class: xl65"]Dew[/TD]
[TD="class: xl65, align: right"]12005[/TD]
[/TR]
[TR]
[TD="class: xl65"]Dew[/TD]
[TD="class: xl65, align: right"]12006[/TD]
[/TR]
[TR]
[TD="class: xl65"]Dew[/TD]
[TD="class: xl65, align: right"]12007[/TD]
[/TR]
[TR]
[TD="class: xl65"]Aun[/TD]
[TD="class: xl65, align: right"]987000[/TD]
[/TR]
[TR]
[TD="class: xl65"]Aun[/TD]
[TD="class: xl65, align: right"]987001[/TD]
[/TR]
</tbody>[/TABLE]