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
 

Some videos you may like

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

oldbrewer

Board Regular
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
 

Watch MrExcel Video

Forum statistics

Threads
1,123,087
Messages
5,599,658
Members
414,325
Latest member
kfg1287

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