Parsing a file and displaying contents in excel

S

satya.mahesh

Hi All,

I am looking for a VB code which does the following:

I have a folder structure:

C:\Test
Under that folder I have some files :
File1.txt
File2.txt

Each of the files again follow a specific pattern:

File1.txt
Inputs:
a
b
Outputs:
c
d

File2.txt
Inputs:
d
e
Outputs:
f
g

The macro should navigate to the folder and loop thru all the files and
fetch the data. It should display the contents in an excel file as
follows:

file Name Inputs Outputs
**********************************************

File1.txt a c
b d
File2.txt e g
f h


I shall be glad if anyone can provide me with a VB macro/suggestions as
how to do this.


Thanks,
satya
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top