compare & merge (with boiler macro)?

D

dwchow

lifehacker.com posted a good tool that was modified by gmayor using boiler
template as a macro for word. While it does what I want to insert a document,
I really want to modify it to use word 2003+'s compare and merge feature
rather than just inserting a document into each other like chapters.

desired results: 2+ same structure files to merge, but different contents
all merged into file 1's structure with content appended to the appropriate
sections and TOC's updated.
question: I'm looking at the OK button inside the VB editor but I do not
know the command for compare and merge. Could someone point me in the correct
direction?

modified boiler:
http://www.gmayor.com/downloads.htm
 
D

dwchow

Resources found:

http://www.vbforums.com/showthread.p...merge+document

http://www.gmayor.com/downloads.htm

I'm looking at the section clicking the OK button from the form:
Private Sub CommandButton1_click()
For i = 0 To ListBox2.ListCount - 1
Selection.InsertFile FileName:=sFileLocation & ListBox2.List(i)
If i < ListBox2.ListCount - 1 Then
' sQuery = MsgBox("Insert each document on a new page?", vbYesNo, _
"Section break")
If CheckBox1 = True Then
Selection.InsertBreak Type:=wdSectionBreakNextPage
End If
End If
Next i
End
End Sub

I'm assuming selection.insertbreak and selection.insertfile are the two I'd
like to change (functionally). What exactly do I put in there?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top