Re: How to get data from txt file into table of word template through



Open the text file, extract the data, insert it into the document.

There are well-documented methods for each of these tasks. What have you
tried so far, and what are you having trouble with?


"Sam" <Sam@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B9CDB655-229F-44A7-AEAF-601D0083F9B2@xxxxxxxxxxxxxxxx
HI,

If I want to load data info from pure txt file into specific cell of one
table
in Word document, what kind of method should I use? Could you give me
some simple code sample?

For example, I have a 'txt' file, with some contact info(Incluing
name,telephone number, address,Email...)

I want to use those contact info to fill one table(which have two columns,
name and email) in word document. In the table, it only give the name
info,
we should fill the email column by ourself. How can we collect info from
the
'txt' file? it is possible to use VBA to fill the telephone info
automatively?
Could you give me some hints?

Regards

Sam



.


Loading