Hi,
I'm trying to write a macro to gather data from inbox, look through a series of columns to see if the the inbox data is listed (top row) and on a hit, access each row below, one by one to do some calculations. I'm not sure how to approach this. So for example, I want to key in Monday, find the Monday column, and go through the 5 rows to get the numbers 3, then 2, then 6, then 4, then 5. Does that make sense? Also, the # of columns and rows would be variable and data can be changed on the fly. Any help would be very much appreciated. Many thanks!!
[TABLE="width: 281"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Monday[/TD]
[TD]Tuesday [/TD]
[TD]Wednesday[/TD]
[TD]Friday[/TD]
[TD]Saturday[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]6[/TD]
[TD]3[/TD]
[TD]2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]4[/TD]
[TD]4
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD]8[/TD]
[TD]7[/TD]
[TD]6[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]9[/TD]
[TD]9[/TD]
[TD]8[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]12[/TD]
[TD]11[/TD]
[TD]10[/TD]
[TD]7[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 888"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: right"]Bonnie
[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]7[/TD]
[/TR]
</tbody>[/TABLE]
I'm trying to write a macro to gather data from inbox, look through a series of columns to see if the the inbox data is listed (top row) and on a hit, access each row below, one by one to do some calculations. I'm not sure how to approach this. So for example, I want to key in Monday, find the Monday column, and go through the 5 rows to get the numbers 3, then 2, then 6, then 4, then 5. Does that make sense? Also, the # of columns and rows would be variable and data can be changed on the fly. Any help would be very much appreciated. Many thanks!!
[TABLE="width: 281"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Monday[/TD]
[TD]Tuesday [/TD]
[TD]Wednesday[/TD]
[TD]Friday[/TD]
[TD]Saturday[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]6[/TD]
[TD]3[/TD]
[TD]2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]4[/TD]
[TD]4
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD]8[/TD]
[TD]7[/TD]
[TD]6[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]9[/TD]
[TD]9[/TD]
[TD]8[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]12[/TD]
[TD]11[/TD]
[TD]10[/TD]
[TD]7[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 888"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: right"]Bonnie
[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]7[/TD]
[/TR]
</tbody>[/TABLE]