Charles said:
Thanks Jonathan, unfortunately I have never used macro to do anything
so I don't know how to do it.
These articles may help you get started on VBA
Getting To Grips With VBA Basics In 15 Minutes
http://word.mvps.org/FAQs/MacrosVBA/VBABasicsIn15Mins.htm
Creating a macro with no programming experience using the
recorder
http://word.mvps.org/FAQs/MacrosVBA/UsingRecorder.htm
What do I do with macros sent to me by other newsgroup readers
to help me out?
http://word.mvps.org/FAQs/MacrosVBA/CreateAMacro.htm
I actually have got some VBA code to insert sub-documents in a
predefined master file. The reason I choose master/subdocuments is my
manager wish to keep Word documents format/style consistence after
insert tens/hundreds of difference Word into one new Word file. What
he did was first format one master file, then inserts all subdocuments
into this master file (so all subdocuments will inherit master file's
format/style).
I know this sounds dangerous in terms of Word file corruption, do you
have any suggestions?
I would suggest instead that for each file, you create a new blank document
based on a template with the correct formtting that you have created for the
purpose, and then insert the document into the blank document, and then save
the new document under the same name in a separate folder.
Try doing this by hand first, to see if it gets the results you need. Then
record a macro while you are doing it. Then post the code here and somebody
will be able to help you automate this so that you can loop through a folder
full of files and process them in a batch.