Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
cyberdude cyberdude is offline
external usenet poster
 
Posts: 33
Default How to mail merge selected pages of a document?

Hi,

I have a document having 3 pages. On the last page, it somewhere
holds a company name which changes and depends on the input record.

Suppose that I now have 3 records containing 3 different company
names. I want to do mail merge on the original document using the 3
records so that the resulting mail merged document has 5 pages in
which the first 2 pages are the same as those of the original document
and the remaining pages contain bascially the last page of the
original document but they show a different company name on each
page. Is that possible by mail merge?

An example is shown below:

Origial document may look like this:

.....The weather is fine today....
..............................................
P.1

.....The beach is beautiful.........
..............................................
P.2

.....Microsoft is a big company..
..............................................
P.3

The resulting document should look like this:
.....The weather is fine today....
..............................................
P.1

.....The beach is beautiful.........
..............................................
P.2

.....Microsoft is a big company..
..............................................
P.3

.....Oracle is a big company..
..............................................
P.4

.....Google is a big company..
..............................................
P.5

I hope the above example makes things clear.

Mike
  #2   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 How to mail merge selected pages of a document?

That cannot really be done with mail merge. I would suggest that you use a
form letter type mail merge main document, then execute the merge to a new
document and the to just print the first two pages and the third page of
each letter, use a macro that contains the following code:

Dim i As Long
With ActiveDocument
.PrintOut Range:=wdPrintFromTo, From:="s1", To:="s1"
For i = 2 To .Sections.Count
.PrintOut Range:=wdPrintFromTo, From:="p3s" & i, To:="p3s" & i
Next i
End With


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

"cyberdude" wrote in message
...
Hi,

I have a document having 3 pages. On the last page, it somewhere
holds a company name which changes and depends on the input record.

Suppose that I now have 3 records containing 3 different company
names. I want to do mail merge on the original document using the 3
records so that the resulting mail merged document has 5 pages in
which the first 2 pages are the same as those of the original document
and the remaining pages contain bascially the last page of the
original document but they show a different company name on each
page. Is that possible by mail merge?

An example is shown below:

Origial document may look like this:

....The weather is fine today....
.............................................
P.1

....The beach is beautiful.........
.............................................
P.2

....Microsoft is a big company..
.............................................
P.3

The resulting document should look like this:
....The weather is fine today....
.............................................
P.1

....The beach is beautiful.........
.............................................
P.2

....Microsoft is a big company..
.............................................
P.3

....Oracle is a big company..
.............................................
P.4

....Google is a big company..
.............................................
P.5

I hope the above example makes things clear.

Mike



  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
cyberdude cyberdude is offline
external usenet poster
 
Posts: 33
Default How to mail merge selected pages of a document?

Hi Doug,

Thanks for your reply. So, mail merge can't do merging on selected
pages in my case according to your answer.

I think I'll take a similar approach as what you suggested but I'll
delete the extra pages by a macro instead of printing the needed pages
to a new document. May I ask if you or someone else know the macro
that highlights the text from the cursor's current position to any
specific word, let say "name", in the word document? I hope to use
this macro to delete the extra pages by several key strokes. Thank
you.

Mike

On 5$B7n(B3$BF|(B, $B28a(B6$B;~(B18$BJ,(B, "Doug Robbins - Word MVP"
wrote:
That cannot really be done with mail merge. I would suggest that you use a
form letter type mail merge main document, then execute the merge to a new
document and the to just print the first two pages and the third page of
each letter, use a macro that contains the following code:

Dim i As Long
With ActiveDocument
.PrintOut Range:=wdPrintFromTo, From:="s1", To:="s1"
For i = 2 To .Sections.Count
.PrintOut Range:=wdPrintFromTo, From:="p3s" & i, To:="p3s" & i
Next i
End With

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

"cyberdude" wrote in message

...



Hi,


I have a document having 3 pages. On the last page, it somewhere
holds a company name which changes and depends on the input record.


Suppose that I now have 3 records containing 3 different company
names. I want to do mail merge on the original document using the 3
records so that the resulting mail merged document has 5 pages in
which the first 2 pages are the same as those of the original document
and the remaining pages contain bascially the last page of the
original document but they show a different company name on each
page. Is that possible by mail merge?


An example is shown below:


Origial document may look like this:


....The weather is fine today....
.............................................
P.1


....The beach is beautiful.........
.............................................
P.2


....Microsoft is a big company..
.............................................
P.3


The resulting document should look like this:
....The weather is fine today....
.............................................
P.1


....The beach is beautiful.........
.............................................
P.2


....Microsoft is a big company..
.............................................
P.3


....Oracle is a big company..
.............................................
P.4


....Google is a big company..
.............................................
P.5


I hope the above example makes things clear.


Mike- $Bp,i6Ho0zMQJ8;z(B -


- $Bp}(Ho0zMQJ8;z(B -


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
Word Mail Merge, Print Selected Pages or Sections Multiple Times ksb31535 Mailmerge 1 February 28th 07 08:13 AM
how to add borders on selected pages in a document sugarbaberankin Microsoft Word Help 1 January 12th 06 09:29 AM
collate pages in mail merge vs mail merge being single document Dan Schwab Mailmerge 2 September 14th 05 09:35 PM
Mail Merged Document, not printing selected pages unone-AU Mailmerge 1 July 12th 05 05:12 AM
Watermarks only on selected pages within a document tom Microsoft Word Help 4 April 11th 05 03:33 PM


All times are GMT +1. The time now is 11:51 AM.

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

About Us

"It's about Microsoft Word"