Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
chachi chachi is offline
external usenet poster
 
Posts: 2
Default MailMergeBeforeRecordMerge not firing for all records

hi everybody, i've been having this problem for a while now and have
been unsuccessful in finding a solution. we have a recruitment program
(recruitment plus, if anyone wants to know) at work that we use for
doing mail and email merges. i open my program, find what it is that i
want to merge, hit merge, and word opens with the finished product.
whenever i merge documents with vb code, the MailMergeBeforeRecordMerge
method only fires on the last record.

what i'm trying to do is change the text of a mergefield, then insert
that modified text into boomark. i'm doing all of this inside
MailMergeBeforeRecordMerge. it works perfectly... except for the fact
that it only works for the last record. (before i change the info in
each record, i have a little popup window tell me what record i'm
merging, and it only pops up on the last record)

i know that there's a problem with the MailMergeBeforeMerge method only
firing when called from the mail merge wizard, i'm wondering if maybe
there's a similar problem with MailMergeBeforeRecordMerge...?

can anyone can shine some light on my situation?

  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default MailMergeBeforeRecordMerge not firing for all records

I've tried something similar here using VBA to write the Event code, and I
don't see this unless I set Cancel = True for exvery record except the last.
Could you be doing the same?

If not, please post the relevant parts of your code here and I'll try to
have a look.

Peter Jamieson

"chachi" wrote in message
oups.com...
hi everybody, i've been having this problem for a while now and have
been unsuccessful in finding a solution. we have a recruitment program
(recruitment plus, if anyone wants to know) at work that we use for
doing mail and email merges. i open my program, find what it is that i
want to merge, hit merge, and word opens with the finished product.
whenever i merge documents with vb code, the MailMergeBeforeRecordMerge
method only fires on the last record.

what i'm trying to do is change the text of a mergefield, then insert
that modified text into boomark. i'm doing all of this inside
MailMergeBeforeRecordMerge. it works perfectly... except for the fact
that it only works for the last record. (before i change the info in
each record, i have a little popup window tell me what record i'm
merging, and it only pops up on the last record)

i know that there's a problem with the MailMergeBeforeMerge method only
firing when called from the mail merge wizard, i'm wondering if maybe
there's a similar problem with MailMergeBeforeRecordMerge...?

can anyone can shine some light on my situation?



  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
chachi chachi is offline
external usenet poster
 
Posts: 2
Default MailMergeBeforeRecordMerge not firing for all records

i looked, and i definitely don't have anything saying cancel. i did
however find a different - and MUCH easier - solution to my problem.
so, thanks for responding to my post, i appreciate it

Peter Jamieson wrote:
I've tried something similar here using VBA to write the Event code, and I
don't see this unless I set Cancel = True for exvery record except the last.
Could you be doing the same?

If not, please post the relevant parts of your code here and I'll try to
have a look.

Peter Jamieson

"chachi" wrote in message
oups.com...
hi everybody, i've been having this problem for a while now and have
been unsuccessful in finding a solution. we have a recruitment program
(recruitment plus, if anyone wants to know) at work that we use for
doing mail and email merges. i open my program, find what it is that i
want to merge, hit merge, and word opens with the finished product.
whenever i merge documents with vb code, the MailMergeBeforeRecordMerge
method only fires on the last record.

what i'm trying to do is change the text of a mergefield, then insert
that modified text into boomark. i'm doing all of this inside
MailMergeBeforeRecordMerge. it works perfectly... except for the fact
that it only works for the last record. (before i change the info in
each record, i have a little popup window tell me what record i'm
merging, and it only pops up on the last record)

i know that there's a problem with the MailMergeBeforeMerge method only
firing when called from the mail merge wizard, i'm wondering if maybe
there's a similar problem with MailMergeBeforeRecordMerge...?

can anyone can shine some light on my situation?


  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default MailMergeBeforeRecordMerge not firing for all records

Glad you fixed it, but would you mind sharing your solution?

Thanks,

Peter Jamieson

"chachi" wrote in message
oups.com...
i looked, and i definitely don't have anything saying cancel. i did
however find a different - and MUCH easier - solution to my problem.
so, thanks for responding to my post, i appreciate it

Peter Jamieson wrote:
I've tried something similar here using VBA to write the Event code, and
I
don't see this unless I set Cancel = True for exvery record except the
last.
Could you be doing the same?

If not, please post the relevant parts of your code here and I'll try to
have a look.

Peter Jamieson

"chachi" wrote in message
oups.com...
hi everybody, i've been having this problem for a while now and have
been unsuccessful in finding a solution. we have a recruitment program
(recruitment plus, if anyone wants to know) at work that we use for
doing mail and email merges. i open my program, find what it is that i
want to merge, hit merge, and word opens with the finished product.
whenever i merge documents with vb code, the MailMergeBeforeRecordMerge
method only fires on the last record.

what i'm trying to do is change the text of a mergefield, then insert
that modified text into boomark. i'm doing all of this inside
MailMergeBeforeRecordMerge. it works perfectly... except for the fact
that it only works for the last record. (before i change the info in
each record, i have a little popup window tell me what record i'm
merging, and it only pops up on the last record)

i know that there's a problem with the MailMergeBeforeMerge method only
firing when called from the mail merge wizard, i'm wondering if maybe
there's a similar problem with MailMergeBeforeRecordMerge...?

can anyone can shine some light on my situation?




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
Mail merge put in extra records Mark Christensen Mailmerge 2 July 3rd 06 12:53 PM
merge related records onto a page w/new page at defined data Pamrus Mailmerge 1 April 1st 06 07:01 AM
Excluded Records Anomaly Brian Smither Mailmerge 2 February 4th 06 05:45 PM
mailmerge from Access parameter query only merges odd records helios Mailmerge 5 December 30th 05 11:24 AM
Multiple records into a single document Mark Mailmerge 5 March 22nd 05 07:52 PM


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

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"