Import Section in Multiple Text files into 1 Excel file

D10685

New Member
Joined
Feb 4, 2016
Messages
2
I have one tag I need imported, along with the file name, from multiple TXT files into 1 Excel file (preferably Column 1 file name, column 2 the tag shown below). I only need the text within the tag.
<phrase translate="true">REVISION TIBIAL SLEEVE SEPARATOR - DRIVER</phrase>

Excel example:
COLUMN 1 | COLUMN 2
(file name) (tag content)
17231980.1 | REVISION FEMORAL BROACH TRIAL BOLT
17231980.2 | REVISION MACRO SOLID FEMORAL TRIALS CASE

<colgroup><col><col></colgroup><tbody>
</tbody>

Does anyone have a macro that would work for this? With my very sparse knowledge on Macros I can run them but no idea how to write one this specific.

Thanks in advance!
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
oops the tag disappeared on me, lets try it with some spaces added:

< phrase translate="true" > < /phrase >
 
Upvote 0

Forum statistics

Threads
1,217,352
Messages
6,136,058
Members
449,986
Latest member
Mark39841

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