Hi,
I have named two workbooks wb1 and wb2 (the real name of wb2 will change depending on the date). I have also named the sheets ws and wt in wb1 and rd2 and rd3 in wb2. I then need to use formulas in wb1 that use use values in wb2, however, i'm struggling to use the workbook names in the formulas.
Below is one of my formulas, i need 'Excelsius Raw Data COB 0905.xls' to be wb2 and the sheet name 'cash' to be rd2.
Thanks in advance
Blunder
I have named two workbooks wb1 and wb2 (the real name of wb2 will change depending on the date). I have also named the sheets ws and wt in wb1 and rd2 and rd3 in wb2. I then need to use formulas in wb1 that use use values in wb2, however, i'm struggling to use the workbook names in the formulas.
Below is one of my formulas, i need 'Excelsius Raw Data COB 0905.xls' to be wb2 and the sheet name 'cash' to be rd2.
Code:
ws.Range("c" & r).FormulaArray = "=SUM(('[Excelsius Raw Data COB 0905.xls]Cash'!" & strrng & "=$b$1)*('[Excelsius Raw Data COB 0905.xls]Cash'! " & strrng1 & "=7))"
Thanks in advance
Blunder