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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word 2003 Batch Process add file

Status
Not open for further replies.

marisam

Technical User
Mar 31, 2006
57
US
I have over a 100 word documents where I need to insert another word file at the end of each word document.
Is there a script that will perform this batch process so I don't have to open each file and insert the additional word document.

Thanks
 
And what have you tried so far ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Yes, this can be automated so each document gets the appended file. However, this would automating the opening of the document, and inserting the appending file. You have to open each document. You can not magically add stuff to a document without opening it. But yes, it can be automated.

As PH asked...what have you tried so far?

Gerry
My paintings and sculpture
 
Nothing yet. I'm not familiar with vb script but I am willing to teach myself to make my life easier. I was hoping someone might know of a script that's available online that I am allowed to use.

Thanks
 
Hmmmmm, it would be better if you got the solution youraself. You would understand things much more.

OK, this is a fairly common thing to need.

Try figuring out the steps you need.

1. Have to open each file. OK, that means you need something that will go to a folder, and opening each .Doc file it in.

There are lots of threads here with exactly this question. I know - I've answered a few. Look at the DIR function, or you could use FileSystemObject.

2. Inserting a file at the end of the document, then save it.

This is simple, and you can do this yourself easily. Record a macro doing: opening a document, inserting the file, and then saving it.

Now you have the code to do what you want with ONE file. The next part is to do this with all the files in a folder. Again, you can use the DIR function.

This is not difficult to do. Although...if your documents have different headers and footers, and different Styles, it can get messy. Basically though this is not at all beyond a beginner.

Record the starting macro, look up Dir - either here or in Help. Give it a shot. Post back with problems. We can help. However, we are not a Help Desk and just hand off solutions to people.

Gerry
My paintings and sculpture
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top