Hello all,
how I can pass a worksheet name as a variable in a link to another workbook?
here is what I m trying to achieve: I have 2 workbooks Summary.xlsx and Data.xlsx
in the DATA workbook I have 2 worksheets: CARS and TRUCKS
now I want in function of what is in cell A1, A2, etc in the Summary file the links to automatically refer to the CARS/TRUCKS worksheet
in a single workbook the
combination works perfectly, but I cannot make it work with external workbooks. the variable(Sheetname) is stored in A3.
let's say that the absolute link link to the CARS sheet is:
so what I need is to change somehow the link to TRUCKS!$B$2.
thank you all
how I can pass a worksheet name as a variable in a link to another workbook?
here is what I m trying to achieve: I have 2 workbooks Summary.xlsx and Data.xlsx
in the DATA workbook I have 2 worksheets: CARS and TRUCKS
now I want in function of what is in cell A1, A2, etc in the Summary file the links to automatically refer to the CARS/TRUCKS worksheet
in a single workbook the
Code:
INDIRECT(ADDRESS(2,2,,,A3))
let's say that the absolute link link to the CARS sheet is:
Code:
[B]C:\Test\[Data.xlsx]CARS'!$B$2[/B]
so what I need is to change somehow the link to TRUCKS!$B$2.
thank you all
Last edited: