Pulling data for a closed excel workbook.

mbhatt

New Member
Joined
Jan 2, 2017
Messages
4
Hi,

I have 10 excel files (name: 1, 2,3,etc.) in 10 different folders. I want to pull a specific range from a common worksheet name: Data from every excel file, without opening it

Ex: File 1 – data- A2:D10 , File 2 – data- A2:D10

I want to paste the values in the desired workbook name: Summary in such a way that file 1 data come first then file 2 data and so on. Can anyone help me to get a code for this. Thank you for helping!


Thanks,

MB
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Hi,

I have 10 excel files (name: 1, 2,3,etc.) in 10 different folders. I want to pull a specific range from a common worksheet name: Data from every excel file, without opening it

Ex: File 1 – data- A2:D10 , File 2 – data- A2:D10

I want to paste the values in the desired workbook name: Summary in such a way that file 1 data come first then file 2 data and so on. Can anyone help me to get a code for this. Thank you for helping!


Thanks,

MB

in an open workbook sheet1 in cell A1

=c:\myfolder[anotherworkbook]sheet3!B7

this will provide the value from a closed workbook
 
Upvote 0

Forum statistics

Threads
1,215,651
Messages
6,126,029
Members
449,281
Latest member
redwine77

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