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

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

oldbrewer

Well-known Member
Joined
Apr 11, 2010
Messages
11,005
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
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,991
Messages
5,856,683
Members
431,828
Latest member
kARTIK12345

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
Top