Copy from a doc file to another one

Posted on 2004-03-25
Last Modified: 2010-05-01
Hi friends,
I want to copy the contain of alot of doc files into another one. How can I do? Please help me.
Thanks alot,
Question by:VTV
LVL 27

Expert Comment

ID: 10684567
Do I understand correctly, you want to have one document, which is composed of the contents of say, 5 other documents?
Have you tried to use the Master and Subdocument feature in Word?


Accepted Solution

pg_india earned 125 total points
ID: 10686110
try this tutorial

it gives a clear understanding of how to use word object..all you have to do is to select all the contents using coy and paste it to a second document.

tell in case of any more clarification
LVL 26

Expert Comment

ID: 10686726
I use record the macro to get this

    Documents.Open FileName "You first doc", _
        ConfirmConversions:=False, ReadOnly:=False, AddToRecentFiles:=False, _
        PasswordDocument:="", PasswordTemplate:="", Revert:=False, _
        WritePasswordDocument:="", WritePasswordTemplate:="", Format:= _

' repeat this to add more doc
    Selection.GoTo What:=wdGoToPage, Which:=wdGoToNext, Count:=10000, Name:=""
    Selection.EndKey Unit:=wdStory
    Selection.Delete Unit:=wdWord, Count:=-1
    Selection.InsertBreak Type:=wdPageBreak
    Selection.InlineShapes.AddOLEObject ClassType:="Word.Document.8", FileName _
        :="your seocond.doc", LinkToFile:= False, DisplayAsIcon:=False

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now