I have a Master workbook, looks like this:
and I have individual statementts for all the employees which look like this:
I have all my dynamic named ranges working fine on the Master sheet, all looking good.
Now I notice that if I close the Master workbook, then the highlighted area where the data is supposed to be, all turns to #REF erros...
all the formulas to pull the data are like this when the workbook is open:
=INDEX('Staff Rewards Master.xls'!BenefitsData,MATCH(FirstName & " " & Surname,'Staff Rewards Master.xls'!Employees,0),MATCH(A:A,'Staff Rewards Master.xls'!BenefitNames,0))
and the formulas (naturally) become this when the Source or Master workbook is closed:
=INDEX('C:\vss\Staff Rewards Statements\Staff Rewards Master.xls'!BenefitsData,MATCH(FirstName & " " & Surname,'C:\vss\Staff Rewards Statements\Staff Rewards Master.xls'!Employees,0),MATCH(A10,'C:\vss\Staff Rewards Statements\Staff Rewards Master.xls'!BenefitNames,0))]
BTW, if I copy this to the RUN dialog (taken from the paths above), the file opens in Excel with no problem:
C:\vss\Staff Rewards Statements\Staff Rewards Master.xls
Here is the error message that I get if I calculate the Statement sheet after closing the source Master workbook:
Now, I should mention that if I remove the defined names and just put in cell references it works fine, but why can't my dynamic named ranges work?
for example, this has no problems:
=INDEX('O:\Dev\Staff Rewards Statements\[Staff Rewards Master.xls]Staff Benefits Master'!$B$7:$K$150,MATCH(FirstName & " " & Surname,'O:\Dev\Staff Rewards Statements\[Staff Rewards Master.xls]Staff Benefits Master'!$A$7:$A$150,0),MATCH(A10,'O:\Dev\Staff Rewards Statements\[Staff Rewards Master.xls]Staff Benefits Master'!$B$6:$T$6,0))
So what am I missing or doing wrong here?