Solved

Copy from a doc file to another one

Posted on 2004-03-25
6
162 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows 10 start screen issues 9 55
VB6 - Convert HH:MM into Decimal 8 54
Can we place a tooltip on the actual vb6 form 5 42
Excel Automation VBA 19 70
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

772 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