Merging with master document

P

Peggy

I'm not certain that this is possible, but I need to lay
out a two-sided brochure (the original art for it has
been given me as a PDF.) On the inside right panel is a
unique letter -- these letters have been given to me as
an already merged Word file.
I'm a true beginner on this merge stuff, but is it
possible to do what I'm describing? Or do I need the
original files including fields, etc.?

Thanks in advance,
Peggy
 
D

Doug Robbins - Word MVP

If you had the mailmerge main file and the data, it would probably be more
straightforward as you could set up the brochure as the mailmerge
maindocument and achieve the end result by executing the merge.

The following macro could be used to split up the merged Word file into
individual files that you could then merge back into the brochure by
insertion of a mergefield containing the path\\filename of the separated
files inside an IncludeText field in the brochure mailmerge main document.

Sub splitter()
'
' splitter Macro
' Macro created 16-08-98 by Doug Robbins to save each page of a document
' as a separate file with the name Page#.DOC
'
Dim Pages as Long, Counter as Long, DocName as String

Selection.HomeKey Unit:=wdStory
Pages = ActiveDocument.BuiltInDocumentProperties(wdPropertyPages)
Counter = 0
While Counter < Pages
Counter = Counter + 1
DocName = "Page" & Format(Counter)
ActiveDocument.Bookmarks("\Page").Range.Cut
Documents.Add
Selection.Paste
ActiveDocument.SaveAs FileName:=DocName, FileFormat:= _
wdFormatDocument, LockComments:=False, Password:="",
AddToRecentFiles:= _
True, WritePassword:="", ReadOnlyRecommended:=False,
EmbedTrueTypeFonts:= _
False, SaveNativePictureFormat:=False, SaveFormsData:=False, _
SaveAsAOCELetter:=False
ActiveWindow.Close
Wend

End Sub


--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
Top