Chooseing file to pull data

Adrac

Active Member
Joined
Feb 13, 2014
Messages
280
Office Version
  1. 365
Platform
  1. Windows
Hello All,

I have a formulated table and over 100 workbooks with different names.
I would like a macro that will let me pick an individual workbook and pull data from it into a master workbook.

Can anyone help?

Adrac
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
If I were you I would use a formula.

1.First make a new sheet and list the work book names in Column A (and sheets names If you want)
2.Then come to your main sheet and select a cell for data verification. Let it is D1. Make a verified list of just workbook names for now. Sheet name will always remain 'Sheet1'.
3.Then use INDIRECT function in your formulas. Lets keep it simple. For instance you want to add 5 to add value to a external value.

=[Budget.xlsx]Sheet1!A1+5

will become

=INDIRECT(D1&"Sheet1!A1")+5

After all whenever you pich a workbook name from the list created in D1, the values will be updated. I hope this would give an idea.
 
Upvote 0
Hello Flash,

Yes thank you this has given me an idea on how I can achieve this with the formula you have provided.

Thanks again.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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