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)
[TABLE="width: 1011"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD="align: right"]17231980.1[/TD]
[TD] | REVISION FEMORAL BROACH TRIAL BOLT[/TD]
[/TR]
[TR]
[TD="align: right"]17231980.2[/TD]
[TD] | REVISION MACRO SOLID FEMORAL TRIALS CASE[/TD]
[/TR]
</tbody>[/TABLE]

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!
 
oops the tag disappeared on me, lets try it with some spaces added:

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

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