Loop through folder to import cell from each file.

Ryan1996

Board Regular
Joined
Jun 4, 2018
Messages
55
I'm looking to create a macro that i can say look inside this folder and within each file found copy and paste a specific cell to a currently open workbook i have.

I need the macro to paste the cell below the previous.

The files that are being used are xml and so they need to be imported via the xml parser in order to copy information.

The folder can either be static or the user has to select it. (doesn't really matter which way)

To confirm the macro should loop through each file in a folder, open it via xml parser select and copy a cell to which it pastes inside a separate workbook i have open within column A for example but below the previous.
Once all files have been looped through the macro should finish. (Note: the macro shouldn't keep any unneeded files open once the information has been extracted.)
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,224,822
Messages
6,181,165
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