In place of the
Documents.Add
command in the macro, use
Documents.Add Template:="C:\Program Files\Microsoft Office" _
& "\Templates\Memos\Professional Memo.dot"replacing 'C:\Program
Files\Microsoft Office" _
& "\Templates\Memos\Professional Memo.dot"
With the name of the template used to create the mail merge main document.

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
> Thank you for your "splitmergeletter" macro - it really helps - except for
> one thing - formatting is coorect when I merge to new doc - it changes the
[quoted text clipped - 13 lines]
>> > How do I take a mail merge document and then split it up into
>> > individual documents to save each letter in a separate place?
Shelly Faye - 13 Apr 2006 13:43 GMT
Thank you for your help.
> In place of the
>
[quoted text clipped - 25 lines]
> >> > How do I take a mail merge document and then split it up into
> >> > individual documents to save each letter in a separate place?
Shelly Faye - 03 May 2006 20:40 GMT
I've hit another glitch - everything works great - the font is behaving
properly, the file names that are being saved are perfect - only one problem
- after running the SplitMergeLetter macro, no matter what I do to the bottom
of the merge letter original, the created file has a printing blank page at
the end, with only a paragraph symbol on it.
At the very end of my original merge document, there is only one paragraph
mark that cannot be removed, and the large document that results from the
merge has no blank pages, only a section break after the last character on
each page, only after I split the letters does the blank page show up.
Can anyone help?
> In place of the
>
[quoted text clipped - 25 lines]
> >> > How do I take a mail merge document and then split it up into
> >> > individual documents to save each letter in a separate place?
Doug Robbins - Word MVP - 03 May 2006 22:36 GMT
Using this macro should overcome that problem:
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
It changes the section break at the end of each letter to a continuous
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
> I've hit another glitch - everything works great - the font is behaving
> properly, the file names that are being saved are perfect - only one
[quoted text clipped - 47 lines]
>> >> > How do I take a mail merge document and then split it up into
>> >> > individual documents to save each letter in a separate place?
aelewis - 21 Aug 2007 20:44 GMT
Is it possible to split a merge document that has several section breaks
within one letter? For example, each individual letter has 2 - 5 section
breaks and then the Section Break (Next Page) ends that letter and begins the
next one.
> Using this macro should overcome that problem:
>
[quoted text clipped - 67 lines]
> >> >> > How do I take a mail merge document and then split it up into
> >> >> > individual documents to save each letter in a separate place?
Doug Robbins - Word MVP - 21 Aug 2007 21:01 GMT
Yes with the proviso that while the number of sections may vary from mail
merge main document to mail merge main document, there would need to be a
constant number of sections for the one mail merge main document. That is,
if by the use of an If...then...Else construction in the mailmerge main
document you were inserting section breaks, then it would not be possible,
or at least would be very difficult to do it via mail merge - A
"roll-your-own" VBA equivalent to Mail Merge would be a better way of
handling that situation.

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
> Is it possible to split a merge document that has several section breaks
> within one letter? For example, each individual letter has 2 - 5 section
[quoted text clipped - 81 lines]
>> >> >> > How do I take a mail merge document and then split it up into
>> >> >> > individual documents to save each letter in a separate place?
aelewis - 21 Aug 2007 21:32 GMT
Thank you for the information! This document is using If...then...Else
statements to insert the breaks.
> Yes with the proviso that while the number of sections may vary from mail
> merge main document to mail merge main document, there would need to be a
[quoted text clipped - 90 lines]
> >> >> >> > How do I take a mail merge document and then split it up into
> >> >> >> > individual documents to save each letter in a separate place?
Richard M 2006 - 25 May 2007 00:12 GMT
Hello Doug,
Where do I go to open and edit the macro to change the command. Tools,
macro, macros lets me see your macro, but the edit button is greyed out OR
the error says the project cannot be viewed.
Thanks,
Richard
> In place of the
>
[quoted text clipped - 25 lines]
> >> > How do I take a mail merge document and then split it up into
> >> > individual documents to save each letter in a separate place?
Doug Robbins - Word MVP - 25 May 2007 04:32 GMT
I assume that you are talking about the addin downloaded from Graham's site.
With Word not running, move the file from the Word Startup folder into your
Templates folder and then use File>Open in Word to open that file. After
modifying it, you will then need to save it and move it back into the
Startup folder and restart Word.

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
> Hello Doug,
> Where do I go to open and edit the macro to change the command. Tools,
[quoted text clipped - 38 lines]
>> >> > How do I take a mail merge document and then split it up into
>> >> > individual documents to save each letter in a separate place?