Here is a starting point.
This macro is layout dependent. I have assumed the layout of Sheet1 that you provided.
You need to name the ranges in the quotation as Item1, Item2, ... and the item number should correspond to the column in Sheet1. Modify the case statement (of the macro below) to include just the items you are interested in (currently set to 1 and 2).
To name a range, click in the cell and type the name in the 'cell reference area' which is to the left of the formula bar.
To install the macro, open your sheet, hit alt>f11. On the file menu go: insert>module and paste the code.
To run from the sheet go: tools>macro>macros, select update_invoice and click run.
Hope this helps.
Bookmarks