Solved

Copy from a doc file to another one

Posted on 2004-03-25
6
163 Views
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,
VTV
0
Comment
Question by:VTV
6 Comments
 
LVL 27

Expert Comment

by:Dabas
ID: 10684567
Hi VTV,
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?

Dabas
0
 
LVL 3

Accepted Solution

by:
pg_india earned 125 total points
ID: 10686110
try this tutorial

http://support.microsoft.com/?kbid=285332

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
0
 
LVL 26

Expert Comment

by:EDDYKT
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:= _
        wdOpenFormatAuto

' 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
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Pull multiple cvs files into one access table 28 69
Add and format columns in vb6 7 63
Added a column screws up code 5 63
Sub or Function is not defined 6 43
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

831 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