Extract text data and file name from .vcf into cell

ajt56

New Member
Joined
Feb 28, 2022
Messages
1
Office Version
  1. 2021
  2. 2019
Platform
  1. Windows
Hi All,

I am trying to extract the text data from a .vcf file and place it into one cell along with its filename. I don't need to separate the data into seperate columns, purely just take it from the .vcf and place it into the excel cell.

I have attached a screenshot of what the end result should look like:

1646098900077.png


As you can see the data from the .vcf is in once cell on the left and the name of the .vcf file is on the right.

I would want to select multiple files and have a VBA code extra each files data and file name and place them into the cells, one after the other, all in the same two columns (A and B). The line spacing of the data must also remain the same.

Any ideas of what I could do?

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.

Forum statistics

Threads
1,214,598
Messages
6,120,441
Members
448,966
Latest member
DannyC96

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