file appending

  • Thread starter Thread starter srinipkweb
  • Start date Start date
S

srinipkweb

Hi folks,
I have some 10 .txt files which I want to append one after another int
a single word document.In between each file I want to insert a blan
page.Also the pages should be numbered.How do I do this programaticall
in word.I should be able to specify the full path of the .txt files
Please help me.
Regards
srinipkwe
 
Set up a template or dummy document with the page numbering you need.
(Insert the page numbers in the Header and Footer view - don't use Insert >
Page number.)

To insert the files and blank pages, you have two possible ways of
automating.

* You could set up the whole skeleton of the document in the template, and
use {INCLUDETEXT} fields to bring in the .txt files - obviously, this
depends on you knowing the path in advance.

* You could set up a macro to insert the blank pages and files. If you are
new to this the best option is to record the process and examine the code,
using the VBA Help as necessary. If you then need some help to, for example,
iterate through files in a directory, post again to one of the VBA groups.
(Google first - you'll probably find an example of whatever it is you want
to do.)
 
Back
Top