Excel 2007 Dynamic Link To Another Files.

I have 1 excel data file with 31 sheets, and 1 report excel file.
The report excel file links to 31 sheets (days) of the excel data file, and I have formular like this:

The report excel file:
K2(Date): 12--> I will change this value everyday.
A5 (linked data from each sheet of the report excel file): =='4 Apr-10\[Apr-10.xls]12'!$W$38

so I want: when I change the value of K2 (Date) to 13, the link of A5 will change automatically to:
'4 Apr-10\[Apr-10.xls]13'!$W$38

Please help me.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:
Hello JameMeck,

You can do that with the Indirect() function, but for that to work you will need to have the Apr-10.xls workbook open. If the workbook is closed, the formula will return an error.

The formula would look like this

=Indirect("'4 Apr-10\[Apr-10.xls]"&K2&"'!$W$38")

Please note the type and order of the quote marks in the formula.

cheers, teylyn
JameMeckAuthor Commented:
Thank you very much!
But I have a lot of files to link data, it is nightmare to open all of those files to get data for my report.
Do you have any solution?
Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:
Yes. You would need to download and install a free Add-in called morefunc.xll
It includes a function called Indirect.Ext that can be used with closed workbooks, too.

The download is here http://download.cnet.com/Morefunc/3000-2077_4-10423159.html

cheers, teylyn

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JameMeckAuthor Commented:
Thanks, I got it.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.