Hi people,
Usually I record my macro's but this one requires what I would usually get a Vlookup funtion to do in a cell and is quite a bit more complicated then anything I've tried befor.
I would just ask for what I need one step at a time and try to put it together myself, but just incase there is anyone out there who can do this sort of thing in 2 minutes flat, I've written out the whole psuedo code and put it below as it could potentially save me several days of getting angry with my computer.
Even if you know how parts of it would work then I would appreciate any help I can get.
I need the macro to:
1. Take todays date from F3 (of current "report" sheet)
2. go to "tables" sheet
3. Scan column B to find the most recent date to todays date,
4. take values from cell D and E (from the row selected in step 3) and put them both into cell P45 of the "report" sheet. ("xxx" & "yyy" into one cell)
5. Go back to the "tables" sheet (and to the same row as found in step 3), copy value of Cell "AP" into Cell P46 of the "report" sheet
6. return to "tables" sheet, move up 1 row from step 3
7. similar to step 4 except paste into O45 (of "report" sheet)
8. similar to step 5 except paste into O46 (of "report" sheet)
9. Repeat steps 6,7,8 another 3 times, each time pasting values into the previous column of the "report" sheet
Any help would be really appreciated as this is waaay past what I am capable of.
Thanks
JRS
Usually I record my macro's but this one requires what I would usually get a Vlookup funtion to do in a cell and is quite a bit more complicated then anything I've tried befor.
I would just ask for what I need one step at a time and try to put it together myself, but just incase there is anyone out there who can do this sort of thing in 2 minutes flat, I've written out the whole psuedo code and put it below as it could potentially save me several days of getting angry with my computer.
Even if you know how parts of it would work then I would appreciate any help I can get.
I need the macro to:
1. Take todays date from F3 (of current "report" sheet)
2. go to "tables" sheet
3. Scan column B to find the most recent date to todays date,
4. take values from cell D and E (from the row selected in step 3) and put them both into cell P45 of the "report" sheet. ("xxx" & "yyy" into one cell)
5. Go back to the "tables" sheet (and to the same row as found in step 3), copy value of Cell "AP" into Cell P46 of the "report" sheet
6. return to "tables" sheet, move up 1 row from step 3
7. similar to step 4 except paste into O45 (of "report" sheet)
8. similar to step 5 except paste into O46 (of "report" sheet)
9. Repeat steps 6,7,8 another 3 times, each time pasting values into the previous column of the "report" sheet
Any help would be really appreciated as this is waaay past what I am capable of.
Thanks
JRS