unknownymous
Board Regular
- Joined
- Sep 19, 2017
- Messages
- 249
- Office Version
- 2016
- Platform
- Windows
Hi Guys,
I have these data below and I was thinking of VBA codes where it will create 3 sheets based on Subject.
The 3 Sheets name is based on Subject as well:
Sheet 1 = Math
Sheet 2 = Science
Sheet 3 = History
Each tab has the same header as the raw data. If the subject is math then it will copy the data to Math tab. same thing with Science and History.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Number[/TD]
[TD]Name[/TD]
[TD]Points[/TD]
[TD]Source 2[/TD]
[TD]Subject[/TD]
[/TR]
[TR]
[TD]001[/TD]
[TD]Chen[/TD]
[TD]1000[/TD]
[TD]-[/TD]
[TD]Math[/TD]
[/TR]
[TR]
[TD]002[/TD]
[TD]Lia[/TD]
[TD]500[/TD]
[TD]-[/TD]
[TD]Math[/TD]
[/TR]
[TR]
[TD]003[/TD]
[TD]Ron[/TD]
[TD]400[/TD]
[TD]-[/TD]
[TD]Science[/TD]
[/TR]
[TR]
[TD]004[/TD]
[TD]May[/TD]
[TD]100[/TD]
[TD]-[/TD]
[TD]History[/TD]
[/TR]
</tbody>[/TABLE]
Any help will be much appreciated.
I have these data below and I was thinking of VBA codes where it will create 3 sheets based on Subject.
The 3 Sheets name is based on Subject as well:
Sheet 1 = Math
Sheet 2 = Science
Sheet 3 = History
Each tab has the same header as the raw data. If the subject is math then it will copy the data to Math tab. same thing with Science and History.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Number[/TD]
[TD]Name[/TD]
[TD]Points[/TD]
[TD]Source 2[/TD]
[TD]Subject[/TD]
[/TR]
[TR]
[TD]001[/TD]
[TD]Chen[/TD]
[TD]1000[/TD]
[TD]-[/TD]
[TD]Math[/TD]
[/TR]
[TR]
[TD]002[/TD]
[TD]Lia[/TD]
[TD]500[/TD]
[TD]-[/TD]
[TD]Math[/TD]
[/TR]
[TR]
[TD]003[/TD]
[TD]Ron[/TD]
[TD]400[/TD]
[TD]-[/TD]
[TD]Science[/TD]
[/TR]
[TR]
[TD]004[/TD]
[TD]May[/TD]
[TD]100[/TD]
[TD]-[/TD]
[TD]History[/TD]
[/TR]
</tbody>[/TABLE]
Any help will be much appreciated.