View Single Post
  #5   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Insert a separator page when a record changes

It might be easier to execute the merge to a new document, then use a
modification of a macro such as

Sub splitter()
' splitter Macro
' Macro created by Doug Robbins to save each letter created by a mailmerge
' as a separate file, retaining the header and footer information.
Dim i As Long, Source As Document, Target As Document, Letter As Range
Set Source = ActiveDocument
For i = 1 To Source.Sections.Count
Set Letter = Source.Sections(i).Range
Set Target = Documents.Add
Target.Range = Letter
Target.Sections(2).PageSetup.SectionStart = wdSectionContinuous
Target.SaveAs FileName:="Letter" & i
Target.Close
Next i
End Sub

to split that document into separate files into each of which the separator
page was inserted (by inserting a NextPage Section Break at the beginning of
the document and formatting the then first page of the document so that it
was the desired sizze) and have it print the file without being saved. If
the mergefield that will contain the data that is to appear on the separator
page was the first paragraph of the mailmerge main document, the macro could
cut the corresponding paragraph from each file and paste it onto the
separator page.


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

wrote in message
...
Great! Thanks for the help. The other question that I have is there
a way to get a a certain field to only print on those separator
pages? Also, how can I configure Word to give those separator pages a
different size than the normal pages. The normal pages are 12"x16"
and I would like to make the seperator pages be 13"x16". My printer
will handle tray calls as it will know what paper is where. Thanks
again for your help.