--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
leedelee wrote:
> How do I take a mail merge document and then split it up into
> individual documents to save each letter in a separate place?
Why?
The original letter is in Arial, the resulting letters are in Arial, the
split letters are in Times New Roman - and as there is a specific look on the
page - eg letterhead also in Arial, we want to preserve the original look.
Thank you for your help.
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.
--
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
"Shelly Faye" <Shell...@discussions.microsoft.com> wrote in message
news:17A16FCA-F128-4F34...@microsoft.com...
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?
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.
--
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
"Shelly Faye" <Shell...@discussions.microsoft.com> wrote in message
news:4C468B7B-A212-4C33...@microsoft.com...
--
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
"Richard M 2006" <Richar...@discussions.microsoft.com> wrote in message
news:867EC168-5586-499C...@microsoft.com...
--
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
"aelewis" <ael...@discussions.microsoft.com> wrote in message
news:B03F7C89-8626-4CE2...@microsoft.com...
Run-time error 4608: Value out of range.
I'm exporting a dbase file from Access 03. In the query I've added the
Folder/File Name field:
Folder: "\\cee-data\conference forms\" & [GradYear] & "\" & [FirstLast] &
"\" & [Enter Year]
The macro runs; I tell it to split and then I get the error. I click OK on
the error window and a single merged document opens. What could be wrong?
Is it because I have spaces in my folder names? The file names in the sample
have spaces, but maybe that doesn't translate to folder names.
Any help would be most appreciated.
TIA~
--
Kirstin McDonald
ITC
If you create a macro containing the code
FileSaveAs "what is displayed in as asked above"
and run it with any document active (a blank one will do), does it save the
document correctly or do you get the same error message.
I think that the \\ may be causing a problem.
--
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
"Kirstin" <Kir...@discussions.microsoft.com> wrote in message
news:B64FADFB-0554-4C83...@microsoft.com...
\\cee-data\share\conference forms\2010\Kate Adams\2007 Narrative
S:\conference forms\2010\Kate Adams\2007 Narrative
\conference forms\2010\Kate Adams\2007 Narrative
conference forms\2010\Kate Adams\2007 Narrative
I've tried creating a new merge doc without using the individual folder
option and still get the error message. I'm stumped and running out of time.
--
Kirstin McDonald
ITC
If you want to send me the mail merge main document and the data source, I
will create the letters for you and send them back.
--
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
"Kirstin" <Kir...@discussions.microsoft.com> wrote in message
news:D8F807A8-3065-4F3F...@microsoft.com...
Thank you for offering to take a look. I'll email the two files under
seperate cover.
1) Go to Find/Replace
2) Click on More
3) Click “Special”
4) Find “Section Break”
5) Replace with “Manual page break” and click ok
Now you’ll be able to save/print whichever pages you want.
However, that is NOT a solution to what was originally desired, which was to
create a separate document for each record in the data source.
Sometimes non-techie solutions just don't cut it.
--
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
"non-techie solutions" <non-techie solu...@discussions.microsoft.com>
wrote in message news:190E0E1D-ED9F-4B06...@microsoft.com...
I have downloaded the macro to enable me to split my mail merge document but
the macro appears not to run when i complete the mail merge and when i press
ok, nothing happens and it continues to run the mail merge as normal.
Any suggestions?
Many Thanks, Jen
--
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, originally posted via msnews.microsoft.com
"Samy" <Sa...@discussions.microsoft.com> wrote in message
news:1C8B2939-FA2D-49AC...@microsoft.com...
Any ideas?
Thanks!
If you close Word and Outlook, are there any ghost versions of Winword.exe
left running (CTRL+ALT+DEL > Processes). If there are close them before
trying again.
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
"User" <Us...@discussions.microsoft.com> wrote in message
news:14361394-A1B1-429A...@microsoft.com...