I am trying to create a macro (my very first one) that will look at a table from Sheet1 and populate Sheet2 based on user defined criteria.
For example:
If in Sheet 1, I have the following table:
Jan Feb Mar
Vegetables
Asparagus 2 3 4
Carrot 5 5 5
Celery 2 8 6
<Blank>
Fruit
Apple 5 3 2
Pear 2 3 5
Banana 2 1 1
Kiwi 9 7 6
On Sheet 2, for whatever is inputed in Cell A1 (Vegetable OR Fruit) and Cell B1 (Month),
I want the macro to populate cells A2:Bx based on what was in the table from Sheet 1.
So if on Sheet 2, the following was input: Vegetable Feb
The macrec would produce the following
Asparagus 3
Carrot 5
Celery 8
My problem is more complicated than this simple example, but I think if someone can help me with this part, I will be able to figure out how to go about doing the rest.
Any help would be greatly appreciated.
Many thanks