Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to automate word document merge

Status
Not open for further replies.

PleaseGiveHelp

Programmer
Oct 29, 2002
131
US
Help. I have thousands of documents that I need to merge together to end up with about 50 documents.
Basically each document starts with a 9 digit code.
I need to open a document. If there are other documents that contain the same 9 digit code prefix, I need to add a section break at the end of the first document, add another document, add a section break at the end of the new document, add another document, etc...until there are no more documents containing the same 9 digit code prefix. Then I need to save as the 9 digit code prefix.doc.
If I open a document with a new 9 digit prefix and there are no other documents containing that same prefix, I can go ahead with the save as the 9 digit code prefix and close out to open up another document. I need to do this until all documents are merged and the new documents (9 digit prefix.doc) have been created.
I dont know how to go about this. Can someone get me started?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top