Jimbob2000
New Member
- Joined
- Jun 27, 2019
- Messages
- 25
I have a database that produces reports about tests taken by students all on one row. The data always includes a test name, test date, and one or more scores. E.g.:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Test[/TD]
[TD]Date[/TD]
[TD]Algebra[/TD]
[TD]Geometry[/TD]
[TD]Arithmetic[/TD]
[TD]Test[/TD]
[TD]Date[/TD]
[TD]Spelling[/TD]
[/TR]
[TR]
[TD]Math[/TD]
[TD]2/2/2019[/TD]
[TD]40[/TD]
[TD]50[/TD]
[TD]60[/TD]
[TD]English[/TD]
[TD]2/5/2019[/TD]
[TD]70[/TD]
[/TR]
</tbody>[/TABLE]
Sometimes there five or six tests, each with five or six scores.
We run these reports all the time and it would be really convenient to fix the data using a macro rather than by hand. I'm looking for a way to use VBA to convert this data into a table that looks like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Test[/TD]
[TD]Date[/TD]
[TD]Algebra[/TD]
[TD]Geometry[/TD]
[TD]Arithmetic[/TD]
[/TR]
[TR]
[TD]Math[/TD]
[TD]2/2/2019[/TD]
[TD]40[/TD]
[TD]50[/TD]
[TD]60[/TD]
[/TR]
[TR]
[TD]Test[/TD]
[TD]Date[/TD]
[TD]Spelling[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]English[/TD]
[TD]2/5/2019[/TD]
[TD]70[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
It's tricky because the number of scores for each test can vary. Any help you can provide would be very greatly appreciated!
[TABLE="width: 500"]
<tbody>[TR]
[TD]Test[/TD]
[TD]Date[/TD]
[TD]Algebra[/TD]
[TD]Geometry[/TD]
[TD]Arithmetic[/TD]
[TD]Test[/TD]
[TD]Date[/TD]
[TD]Spelling[/TD]
[/TR]
[TR]
[TD]Math[/TD]
[TD]2/2/2019[/TD]
[TD]40[/TD]
[TD]50[/TD]
[TD]60[/TD]
[TD]English[/TD]
[TD]2/5/2019[/TD]
[TD]70[/TD]
[/TR]
</tbody>[/TABLE]
Sometimes there five or six tests, each with five or six scores.
We run these reports all the time and it would be really convenient to fix the data using a macro rather than by hand. I'm looking for a way to use VBA to convert this data into a table that looks like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Test[/TD]
[TD]Date[/TD]
[TD]Algebra[/TD]
[TD]Geometry[/TD]
[TD]Arithmetic[/TD]
[/TR]
[TR]
[TD]Math[/TD]
[TD]2/2/2019[/TD]
[TD]40[/TD]
[TD]50[/TD]
[TD]60[/TD]
[/TR]
[TR]
[TD]Test[/TD]
[TD]Date[/TD]
[TD]Spelling[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]English[/TD]
[TD]2/5/2019[/TD]
[TD]70[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
It's tricky because the number of scores for each test can vary. Any help you can provide would be very greatly appreciated!