Reply
 
Thread Tools Display Modes
  #1   Report Post  
Matty_b
 
Posts: n/a
Default Merge to seperate documents

Hi, Is it possible in MSword to merge to seperate documents, because when i
click merge to new document it blocks them all in one document and then i
have to seperate them out manually which is very time consuming with over 100
records,
Thanks
  #2   Report Post  
Graham Mayor
 
Posts: n/a
Default

You cannot output to individual files, but you can split the merge with a
macro which achieves the same ends:
http://www.gmayor.com/individual_merge_letters.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org




Matty_b wrote:
Hi, Is it possible in MSword to merge to seperate documents, because
when i click merge to new document it blocks them all in one document
and then i have to seperate them out manually which is very time
consuming with over 100 records,
Thanks



  #3   Report Post  
Matty_b
 
Posts: n/a
Default

I found your website when searching through google looking for the answer and
tryed you macro but couldnt get it to work, can you give me a walk through of
how to make this work, and also more information on what the outcome should
be?

Thanks for you help
  #4   Report Post  
Doug Robbins
 
Posts: n/a
Default

Try this one:

Sub splitter()

' splitter Macro

' Macro created by Doug Robbins to save each letter created by a mailmerge
as a separate file.

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
Letter.End=Letter.End-1
Set Target = Documents.Add
Target.Range=Letter
Target.SaveAs FileName:="Letter" & i
Target.Close
Next i

End Sub


--
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
"Matty_b" wrote in message
...
I found your website when searching through google looking for the answer
and
tryed you macro but couldnt get it to work, can you give me a walk through
of
how to make this work, and also more information on what the outcome
should
be?

Thanks for you help



  #5   Report Post  
Graham Mayor
 
Posts: n/a
Default

I am curious to discover what problems you had - and given that the posted
code is based on one of Doug's macros, the alternative he has posted may be
similarly problematical. For installing macros from listings, see my other
page http://www.gmayor.com/installing_macro.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org




Matty_b wrote:
I found your website when searching through google looking for the
answer and tryed you macro but couldnt get it to work, can you give
me a walk through of how to make this work, and also more information
on what the outcome should be?

Thanks for you help





  #6   Report Post  
Matty_b
 
Posts: n/a
Default

I've got Dougs macro to work but it doesnt keep all my table formating as
all the information in the mail merge is put into different areas of the
table, the output of the macro is just a list of information unformated, I
dont know if either you or Doug can help me,

Thanks for your assistance

"Graham Mayor" wrote:

I am curious to discover what problems you had - and given that the posted
code is based on one of Doug's macros, the alternative he has posted may be
similarly problematical. For installing macros from listings, see my other
page http://www.gmayor.com/installing_macro.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org




Matty_b wrote:
I found your website when searching through google looking for the
answer and tryed you macro but couldnt get it to work, can you give
me a walk through of how to make this work, and also more information
on what the outcome should be?

Thanks for you help




  #7   Report Post  
Graham Mayor
 
Posts: n/a
Default

This is beginning to sound like a non-standard form letter merge document. A
form letter merge (which the macro is intended to split) separates the
individual merge 'documents' by section breaks and the macro splits the file
along those section breaks. You seem to be doing something quite different.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org




Matty_b wrote:
I've got Dougs macro to work but it doesnt keep all my table
formating as all the information in the mail merge is put into
different areas of the table, the output of the macro is just a list
of information unformated, I dont know if either you or Doug can help
me,

Thanks for your assistance

"Graham Mayor" wrote:

I am curious to discover what problems you had - and given that the
posted code is based on one of Doug's macros, the alternative he has
posted may be similarly problematical. For installing macros from
listings, see my other page
http://www.gmayor.com/installing_macro.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org




Matty_b wrote:
I found your website when searching through google looking for the
answer and tryed you macro but couldnt get it to work, can you give
me a walk through of how to make this work, and also more
information on what the outcome should be?

Thanks for you help



  #8   Report Post  
Matty_b
 
Posts: n/a
Default

This is what i have done,

I have created an Access Database for the user to enter data using a form,
then the information get merged into a word document, the word document has a
number of tables and images, when it merges it is all in one document and i
would like it split out into seperate files/documents, when i used Doug's
macro it only split the information from 1 record into a new document, and it
only had the merge text,

Hope this helps,

"Graham Mayor" wrote:

This is beginning to sound like a non-standard form letter merge document. A
form letter merge (which the macro is intended to split) separates the
individual merge 'documents' by section breaks and the macro splits the file
along those section breaks. You seem to be doing something quite different.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org




Matty_b wrote:
I've got Dougs macro to work but it doesnt keep all my table
formating as all the information in the mail merge is put into
different areas of the table, the output of the macro is just a list
of information unformated, I dont know if either you or Doug can help
me,

Thanks for your assistance

"Graham Mayor" wrote:

I am curious to discover what problems you had - and given that the
posted code is based on one of Doug's macros, the alternative he has
posted may be similarly problematical. For installing macros from
listings, see my other page
http://www.gmayor.com/installing_macro.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org




Matty_b wrote:
I found your website when searching through google looking for the
answer and tryed you macro but couldnt get it to work, can you give
me a walk through of how to make this work, and also more
information on what the outcome should be?

Thanks for you help




  #9   Report Post  
Graham Mayor
 
Posts: n/a
Default

Did you merge to a new document and then run the macro on that merged new
document?

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org





Matty_b wrote:
This is what i have done,

I have created an Access Database for the user to enter data using a
form, then the information get merged into a word document, the word
document has a number of tables and images, when it merges it is all
in one document and i would like it split out into seperate
files/documents, when i used Doug's macro it only split the
information from 1 record into a new document, and it only had the
merge text,

Hope this helps,

"Graham Mayor" wrote:

This is beginning to sound like a non-standard form letter merge
document. A form letter merge (which the macro is intended to split)
separates the individual merge 'documents' by section breaks and the
macro splits the file along those section breaks. You seem to be
doing something quite different.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org




Matty_b wrote:
I've got Dougs macro to work but it doesnt keep all my table
formating as all the information in the mail merge is put into
different areas of the table, the output of the macro is just a list
of information unformated, I dont know if either you or Doug can
help me,

Thanks for your assistance

"Graham Mayor" wrote:

I am curious to discover what problems you had - and given that the
posted code is based on one of Doug's macros, the alternative he
has posted may be similarly problematical. For installing macros
from listings, see my other page
http://www.gmayor.com/installing_macro.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org




Matty_b wrote:
I found your website when searching through google looking for the
answer and tryed you macro but couldnt get it to work, can you
give me a walk through of how to make this work, and also more
information on what the outcome should be?

Thanks for you help



  #10   Report Post  
Matty_b
 
Posts: n/a
Default

It works!!! thank you for your help,

Kind Regards

Matt Bryant

"Graham Mayor" wrote:

Did you merge to a new document and then run the macro on that merged new
document?

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org





Matty_b wrote:
This is what i have done,

I have created an Access Database for the user to enter data using a
form, then the information get merged into a word document, the word
document has a number of tables and images, when it merges it is all
in one document and i would like it split out into seperate
files/documents, when i used Doug's macro it only split the
information from 1 record into a new document, and it only had the
merge text,

Hope this helps,

"Graham Mayor" wrote:

This is beginning to sound like a non-standard form letter merge
document. A form letter merge (which the macro is intended to split)
separates the individual merge 'documents' by section breaks and the
macro splits the file along those section breaks. You seem to be
doing something quite different.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org




Matty_b wrote:
I've got Dougs macro to work but it doesnt keep all my table
formating as all the information in the mail merge is put into
different areas of the table, the output of the macro is just a list
of information unformated, I dont know if either you or Doug can
help me,

Thanks for your assistance

"Graham Mayor" wrote:

I am curious to discover what problems you had - and given that the
posted code is based on one of Doug's macros, the alternative he
has posted may be similarly problematical. For installing macros
from listings, see my other page
http://www.gmayor.com/installing_macro.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org




Matty_b wrote:
I found your website when searching through google looking for the
answer and tryed you macro but couldnt get it to work, can you
give me a walk through of how to make this work, and also more
information on what the outcome should be?

Thanks for you help






  #11   Report Post  
Graham Mayor
 
Posts: n/a
Default

That's a relief

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org




Matty_b wrote:
It works!!! thank you for your help,

Kind Regards

Matt Bryant

"Graham Mayor" wrote:

Did you merge to a new document and then run the macro on that
merged new document?

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org





Matty_b wrote:
This is what i have done,

I have created an Access Database for the user to enter data using a
form, then the information get merged into a word document, the word
document has a number of tables and images, when it merges it is all
in one document and i would like it split out into seperate
files/documents, when i used Doug's macro it only split the
information from 1 record into a new document, and it only had the
merge text,

Hope this helps,

"Graham Mayor" wrote:

This is beginning to sound like a non-standard form letter merge
document. A form letter merge (which the macro is intended to
split) separates the individual merge 'documents' by section
breaks and the macro splits the file along those section breaks.
You seem to be doing something quite different.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org




Matty_b wrote:
I've got Dougs macro to work but it doesnt keep all my table
formating as all the information in the mail merge is put into
different areas of the table, the output of the macro is just a
list of information unformated, I dont know if either you or Doug
can help me,

Thanks for your assistance

"Graham Mayor" wrote:

I am curious to discover what problems you had - and given that
the posted code is based on one of Doug's macros, the
alternative he has posted may be similarly problematical. For
installing macros from listings, see my other page
http://www.gmayor.com/installing_macro.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org




Matty_b wrote:
I found your website when searching through google looking for
the answer and tryed you macro but couldnt get it to work, can
you give me a walk through of how to make this work, and also
more information on what the outcome should be?

Thanks for you help



  #12   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Manoj Talwar
 
Posts: n/a
Default Merge to seperate documents


I was looking for a code that would enable me to split multiple pages in
a merged document to separate documents for example I have a template
with 3 pages - when merged using a normal mail-merge for 5 people, it
creates a merged document with 15 pages (i.e. 5 people with 3 pages
each). Now when I use a macro "Splitter" from the Topic "Individual
Merge Letters", it splits the documents one page at a time creating 15
documents in this caserather than 5 documents.

Any suggestions pls.

Kind regards,
Manoj


--
Manoj TalwarPosted from - http://www.officehelp.in

  #13   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP
 
Posts: n/a
Default Merge to seperate documents

Use

Sub splitter()

' Macro created by Doug Robbins to save each letter created by a mailmerge
as a separate file.

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
Letter.End=Letter.End-1
Set Target = Documents.Add
Target.Range=Letter
Target.SaveAs FileName:="Letter" & i
Target.Close
Next i

End Sub


--
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

"Manoj Talwar" wrote in message
...

I was looking for a code that would enable me to split multiple pages in
a merged document to separate documents for example I have a template
with 3 pages - when merged using a normal mail-merge for 5 people, it
creates a merged document with 15 pages (i.e. 5 people with 3 pages
each). Now when I use a macro "Splitter" from the Topic "Individual
Merge Letters", it splits the documents one page at a time creating 15
documents in this caserather than 5 documents.

Any suggestions pls.

Kind regards,
Manoj


--
Manoj TalwarPosted from - http://www.officehelp.in



  #14   Report Post  
fionab fionab is offline
Junior Member
 
Posts: 1
Default

Thanks for this macro, it works to save the document with the supplied filename. Is there a way to have it save the name as a merged field that is in the topmost corner of the document? I am using word 2010, not sure if there is a newer forum and cannot access the newsgroup.
Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why does Word try to merge documents when I open them? Steve Zinger Mailmerge 1 April 12th 05 09:12 AM
Merge to printer as individual documents. nobag Mailmerge 2 March 28th 05 12:25 PM
How do I merge 2 folders worth of documents? Perplexed Microsoft Word Help 1 March 25th 05 03:22 PM
Merge data - save as different documents Jan Mailmerge 1 March 22nd 05 09:31 PM
Merge multiple documents? George M. Lutz New Users 1 November 27th 04 01:06 PM


All times are GMT +1. The time now is 03:58 PM.

Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright 2004-2023 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"