I have a small section in a workbook that is used for calculating various statistics for an individual based on other input. Essentially, the results look something like this:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Today's Date[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Individual[/TD]
[TD]Stat One[/TD]
[TD]Stat Two[/TD]
[TD]Stat Three[/TD]
[/TR]
[TR]
[TD]Peter[/TD]
[TD]14[/TD]
[TD]23[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]3[/TD]
[TD]21[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Jim[/TD]
[TD]21[/TD]
[TD]14[/TD]
[TD]15[/TD]
[/TR]
</tbody>[/TABLE]
From this sheet, I'd like to take the results and copy the values to three different sheets that contain many more individuals -- by finding the individual's name and date, then copying the value. One sheet, for the first statistic, looks like this:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Individual[/TD]
[TD]Date1[/TD]
[TD]Date2[/TD]
[TD]Date3[/TD]
[TD]...[/TD]
[/TR]
[TR]
[TD]Ralph[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Peter[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Nancy[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Ernest[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Frank[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Paul[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Simon[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Jim[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Jean[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Rich[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Hopefully, I could do this with VBA and, once the calculations are completed in the small section above, just run the code and copy the results so that new calculations could be done for different individuals.
I'm having a little trouble coming up with this VBA routine. Any help would be appreciated. Thanks.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Today's Date[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Individual[/TD]
[TD]Stat One[/TD]
[TD]Stat Two[/TD]
[TD]Stat Three[/TD]
[/TR]
[TR]
[TD]Peter[/TD]
[TD]14[/TD]
[TD]23[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]3[/TD]
[TD]21[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Jim[/TD]
[TD]21[/TD]
[TD]14[/TD]
[TD]15[/TD]
[/TR]
</tbody>[/TABLE]
From this sheet, I'd like to take the results and copy the values to three different sheets that contain many more individuals -- by finding the individual's name and date, then copying the value. One sheet, for the first statistic, looks like this:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Individual[/TD]
[TD]Date1[/TD]
[TD]Date2[/TD]
[TD]Date3[/TD]
[TD]...[/TD]
[/TR]
[TR]
[TD]Ralph[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Peter[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Nancy[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Ernest[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Frank[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Paul[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Simon[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Jim[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Jean[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Rich[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Hopefully, I could do this with VBA and, once the calculations are completed in the small section above, just run the code and copy the results so that new calculations could be done for different individuals.
I'm having a little trouble coming up with this VBA routine. Any help would be appreciated. Thanks.