Programatically concatenating Word files

  • Thread starter Thread starter Scott Bass
  • Start date Start date
S

Scott Bass

Say I have oh 50-100 Word files in a folder, and I want to concatenate them
all together into one large file, inserting a page break between each file.

How can I accomplish the programatically?

Thanks,
Scott
 
The boiler.zip file downloadable from my web site will do this, but will
require a small modification to insert a page break between each file.
Currently it merely appends each file immediately after the one before.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
Thanks Anne. Do you or anyone else know how to modify the BrowseFolder
function to display a dialog allowing the selection of specific files in a
folder? I *do* want to insert all files in the folder into my document, but
I want to insert T*.doc before L*.doc, and I want T12.doc to appear after
T8.doc. I was hoping a switch of the function SHBrowseForFolderA would
allow a different selection dialog, allowing one to choose the not only the
folder, but also to specify a wildcard in a text entry box. This dialog box
is common to many Windows applications (for example the Insert File dialog
in Word itself).

Thanks,
Scott
 
Back
Top