This macro changes the section break at the end of each document resulting
from splitting mail merge to a continuous section break so that it does not
cause a blank page (unless the last page containing text is full to the
gills).
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

Signature
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
> Hi,
>
[quoted text clipped - 25 lines]
> N.B. I am writing code in C# and accessing the Word functionality via
> the Microsoft.Office.Interop.Word wrapper.
Philip Ruelle - 11 Jun 2006 21:37 GMT
Fantastic, thanks Doug, I've tried it out and it works like a charm.
I don't think the spurious section break will cause me any issues but
out of interest is it possible to completely remove the section break
or is this the only way to get the desired results?
Thanks,
Phil
> This macro changes the section break at the end of each document resulting
> from splitting mail merge to a continuous section break so that it does not
[quoted text clipped - 54 lines]
> > N.B. I am writing code in C# and accessing the Word functionality via
> > the Microsoft.Office.Interop.Word wrapper.
Doug Robbins - Word MVP - 12 Jun 2006 04:46 GMT
The only way would be to use VBA to reconstruct the
headers/footers/pagelayout as would be required after deleting the section
break.

Signature
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
> Fantastic, thanks Doug, I've tried it out and it works like a charm.
>
[quoted text clipped - 66 lines]
>> > N.B. I am writing code in C# and accessing the Word functionality via
>> > the Microsoft.Office.Interop.Word wrapper.