?
Solved

Merging Portions of Word Documents

Posted on 2011-03-05
3
Medium Priority
?
352 Views
Last Modified: 2012-06-21
Currently I recieve status reports in MS Word format from multiple techs which I then manually combine into one status report (by copying and pasting) which I send to my supervisor. I would like to automate the process of combining these status reports.  It's a pain.  

Attached is an example of the form I would use to combine all of the individual tech status report.  For the example I've put 2 items for each tech in each category but the number of items could be more or less than 2.  Of course in each of the tech's status report only their name would be on the form (not the other techs).

What would be be best way of combining these status reports and can someone help show me how?  I don't want to pay any licensing fees.  Am open to all suggestions.  Maybe a vb.net or vbs solution?    STATUS-REPORT-TEMPLATE-EE.DOC
0
Comment
Question by:BigBobBK
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 19

Expert Comment

by:MINDSUPERB
ID: 35046197
You may try to design your form in Excel or even better by Access. These two applications are appropriate if you collect data and combine them for reporting.

If you choose Excel, you can design a Sumary spreadsheet by which its data are linked from the spreasheet of each Technician. And with Access, you can distribute a Front End to each technician and whatever data they entered could be easily summarized.

I agree that these approaches could not be easily done but once completed and implemented, it will save you time and hassle.

Sincerely,
Ed
0
 
LVL 16

Expert Comment

by:sjklein42
ID: 35047042
This is some VB I use to build a document automatically.

You start with a DOC file containing your header boilerplate (headerDocument.doc).

The VB code then opens other files, copies and pastes them into the main document.

At the end, it saves it as a new document called finalReport.doc.

If you know VB you can get the idea pretty easily, I think.

Private Function PasteNow()
    Selection.WholeStory
    Selection.Copy
    Windows(1).Activate
    Selection.Paste
End Function

Private Function PasteInto(whichWindow)
    Windows(whichWindow).Activate
    Selection.WholeStory
    Selection.Copy
    Windows(1).Activate
    Selection.EndKey Unit:=wdStory
    Selection.Paste
End Function

Private Function InsertSectionBreak()
    Selection.EndKey Unit:=wdStory
    Selection.InsertBreak Type:=wdSectionBreakNextPage
End Function

Private Function PasteFile(whichFile)
    InsertSectionBreak
    
    Documents.Open FileName:=whichFile, ConfirmConversions:=False, _
        ReadOnly:=True, AddToRecentFiles:=False, PasswordDocument:="", _
        PasswordTemplate:="", Revert:=False, WritePasswordDocument:="", _
        WritePasswordTemplate:="", Format:=wdOpenFormatAuto
    PasteNow
End Function

Sub PasteFilesTogether()
    Documents.Open FileName:="c:\myworkdir\headerDocument.doc", ConfirmConversions:=False, ReadOnly _
        :=True, AddToRecentFiles:=False, PasswordDocument:="", PasswordTemplate _
        :="", Revert:=False, WritePasswordDocument:="", WritePasswordTemplate:="" _
        , Format:=wdOpenFormatAuto

    PasteFile("c:\myworkdir\inputFile_1.doc")
    PasteFile("c:\myworkdir\inputFile_2.doc")
    PasteFile("c:\myworkdir\inputFile_3.doc")
    PasteFile("c:\myworkdir\inputFile_4.doc")
    
    ActiveDocument.SaveAs FileName:="c:\myworkdir\finalReport.doc", FileFormat:= _
        wdFormatDocument, LockComments:=False, Password:="", AddToRecentFiles:= _
        False, WritePassword:="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:= _
        False, SaveNativePictureFormat:=False, SaveFormsData:=False, _
        SaveAsAOCELetter:=False

End Sub

Open in new window

0
 
LVL 46

Accepted Solution

by:
aikimark earned 2000 total points
ID: 35061105
How about using a master document scheme where the master document includes references to the sub documents.  Although you see the content from the sub documents, the master document is much smaller.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

PaperPort (http://www.nuance.com/for-individuals/by-product/paperport/index.htm) is among the most important applications that I run on my Windows computers. I use it every day, for nearly all of my document and photo scanning, as well as most of my…
PaperPort 14.5 Patch 1 update is often not detected or downloaded automatically. This article provides direct download links to solve the problem for retail (non-bundled) versions of the Standard and Professional editions, as well as the Professiona…
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Suggested Courses

752 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