[RESOLVED] Write Txt File to Word using macro
Could anyone advise me? Here's the scenario:
- I have a text/ini file with data in it
- Using a macro I want to read from this text file and write the data to word, preferrably in a table
- The data needs to be automated performed when the document is created. There is a 3rd party app that is performing a mail merge and creates this doc.
i've seen some similar examples but I'm still lost. Any help is much appreciated!
Re: Write Txt File to Word using macro
Welcome to Forums, smittyb! :wave:
Can you post sample data from text file?
Re: Write Txt File to Word using macro
From the 3rd party app i mentioned I can write to a text file so really its a file similar to below, both sets of data being different columns
Jason Stevens IT Director
John Doe VB Programmer
Ricky Gervais Comedian
Bob Jones Fireman
Re: Write Txt File to Word using macro
OK I figured how to read from the txt file and write it to the word doc. Now I just need to format it in table columns. I will look in the forums and hopefully will find something
Re: Write Txt File to Word using macro
Word VBA question moved to Office Development.