Creating a reference to a Workbook with a fixed location but with a changeable file name..

elaiwa

New Member
Joined
Oct 28, 2006
Messages
22
I'm trying take a reference from some workbooks (e.g. WB1.xls,WB2.xls,WB3.xls,...etc)
They are all placed in one folder but there filename is subject to change,

I need to get the result of Cells A1 from WB1.xls+A1 from WB2.xls + A1 from WB3...etc
to shown on AA1 in another workbook(e.g. Collected.XLS)

Is this possible knowing that workbooks filenames are changeable?
Moreover Can the value of A1 from any new workbook added to the same folder be added automatically??...

Can the formula typed in AA1 from Collected.xls be draged down?(So as to show the sum of Cells B1 and C1.....etc) from each workbook?
 
Dear Owen,

I've just checked the workbook ,it looks great where as I have a problem with it,

Whenever I use the Read Workbook names button it just clears the list of workbooks(not replacing with the correct workbooks) knowing that I changed the path in cell B1 and that the path contains the workbooks I need to read,do you know what could be the problem
(The path I used is C:\Documents and Settings\Pc\My Documents\Temp Data),

By the way it works if I changes each workbook link manually,

Thanks,

regards,
 
Upvote 0

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
You need to have a trailing \ at the end of the path. So your path will be:
C:\Documents and Settings\Pc\My Documents\Temp Data\

Sorry, I didn't check for this in the code!

Hope it's helpful!

Owen
 
Upvote 0
Wow,
I never thought this could be the problem,

It worked,
Thank you so much your code is working perfectly now,

Thanks for your time and concern,

Take care
 
Upvote 0
Hi Owen,

Would appreciate very much if you could send me the link to the sample worksheet that you've created for elaiwa. It's just the thing I've been looking for :)

Thank you so much,

Hai.
 
Upvote 0

Forum statistics

Threads
1,215,547
Messages
6,125,461
Members
449,228
Latest member
moaz_cma

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top