My boss wants me to separate a workbook into two separate workbooks and link them. The prices are to be put in one workbook and the work areas and code are to go into another. Users will have a copy of coded workbook and will link to the price file over a network. I can live with the message about updating links, but what I would like to do is put a variable in the cells that reference the pricing workbook so that I don't have to change the name of the linked workbook every month we get new prices. Keeping the same name and location hardcoded in the cells is not practical for testing and the monthly updates.
My question. Is there a way to substitute a variable inside the cell for 'C:\Documents and Settings\My Documents\MyExcel\[Pricing Sheets.xls]Sample'
=(VLOOKUP(B8,'C:\Documents and Settings\My Documents\MyExcel\[Pricing Sheets.xls]Sample'!$A$2:$F$4,2,TRUE)*B8)
As a bonus, how can I get rid of the message that comes up asking to link to the unopen workbook?
Bookmarks