Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / March 2007

Tip: Looking for answers? Try searching our database.

Nested Merge field saves as merged with first record in excel

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jenkusi - 09 Mar 2007 21:42 GMT
I am trying to merge a Word document with an excel file where the excel file
has numbers 1,2,3 which I want changed to words when merged with the Word
Document.  I am able to make the merge work but the merge fields always saves
as merged with the first record in the excel file even if I do not complete
the merge.  How do I get Word to save with the merge fields remaining as
merge fields and not taking on the values of the first record in excel.  The
merge field that I am using is the following:
{IF {MERGEFIELD "Demonstrates"}="3" "Exceeding Expectations" {IF {MERGEFIELD
"Demonstrates"}="2" "Meeting Expectations" {IF {MERGEFIELD
"Demonstrates"}="1" "Not Meeting Expectations" {MERGEFIELD "Demonstrates"}}}}
macropod - 09 Mar 2007 22:16 GMT
Hi jenkusi,

You could code your field as:
{={MERGEFIELD Demonstrates}-2 \# "E'x'ceeding;Not Meeting;Meeting"} Expectations
and avoid the IF test altogether.

If you want to use the IF test, try:
{IF{MERGEFIELD Demonstrates}= 3 "Exceeding" {IF{MERGEFIELD Demonstrates}= 2 "Meeting" "Not Meeting"}} Expectations

Note that in either case, you don't need to have ' Expectations' inside the field.

Cheers

Signature

macropod
[MVP - Microsoft Word]
-------------------------

>I am trying to merge a Word document with an excel file where the excel file
> has numbers 1,2,3 which I want changed to words when merged with the Word
[quoted text clipped - 6 lines]
> "Demonstrates"}="2" "Meeting Expectations" {IF {MERGEFIELD
> "Demonstrates"}="1" "Not Meeting Expectations" {MERGEFIELD "Demonstrates"}}}}
jenkusi - 12 Mar 2007 17:58 GMT
I need to put the last Mergefield in because my data could contain things
other than 1,2,3.  Do you have any idea how to get Word to save the
mergefields intact so that I can edit them without rewriting them?  As I have
it now Word (2003) automatically inserts the value in the first record into
the merge field, the merge works fine but I can't go back and edit the
mergefield without retyping it.

> Hi jenkusi,
>
[quoted text clipped - 19 lines]
> > "Demonstrates"}="2" "Meeting Expectations" {IF {MERGEFIELD
> > "Demonstrates"}="1" "Not Meeting Expectations" {MERGEFIELD "Demonstrates"}}}}
macropod - 12 Mar 2007 21:31 GMT
Hi jenkusi,

In that case, you'll do bets with a set of IF fields. Try:
{IF{MERGEFIELD Demonstrates}= 3 "Exceeding Expectations" {IF{MERGEFIELD Demonstrates}= 2 "Meeting Expectations" {IF{MERGEFIELD
Demonstrates}= 1 "Not Meeting Expectations" {MERGEFIELD Demonstrates}}}}

Perhaps the easiest way to create the set is to:
. insert your 'Demonstrates' mergefield four times, as in «Demonstrates» «Demonstrates» «Demonstrates» «Demonstrates»
. select the last two of these and press Ctrl-F9 to embed them in a formula field, then repeat this with the last 3, then all four,
so that you end up with:
{«Demonstrates» {«Demonstrates» {«Demonstrates» «Demonstrates»}}}
. type the formulae and required results between the field braces and chevrons, so that you end up with
{IF«Demonstrates»= 3 "Exceeding Expectations" {IF«Demonstrates»= 2 "Meeting Expectations" {IF«Demonstrates»= 1 "Not Meeting
Expectations" «Demonstrates»}}}

Be careful to insert all of the spaces and double quotes shown, otherwise the fields won't work correctly.

Cheers
Signature

macropod
[MVP - Microsoft Word]
-------------------------

>I need to put the last Mergefield in because my data could contain things
> other than 1,2,3.  Do you have any idea how to get Word to save the
[quoted text clipped - 26 lines]
>> > "Demonstrates"}="2" "Meeting Expectations" {IF {MERGEFIELD
>> > "Demonstrates"}="1" "Not Meeting Expectations" {MERGEFIELD "Demonstrates"}}}}

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.