Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Retread Retread is offline
external usenet poster
 
Posts: 1
Default Mailmerge fields WITHIN the text of IF-then-else

First, thanks to Doug MVP and "Ed" for previous comments regarding MM.
Reading them almost got me the whole way through my "problem". Using "Ed's"
suggestion from 4/5/2007, I tried to test one field three times :
if it's an "M" text should say "in memory of firstname lastname
(mergefields) then another sentence sending an acknowlegement,
if an "H", "in honor of firstname lastname, etc.
If blank, then put a period at the end of the preceding sentence.

I'm pretty new to this, and can't even figure out how to copy my actual code
into this question - ctl F9 doesn't work within this question box and doing
Edit, Copy, then Edit, Paste doesn't work either.
From the code I wrote by nesting Ed's statement (see above) here is what I
get :

in memory of . An acknowledgement will be sent as you requested.

MERGEFIELD FIRSTNAME MERGEFIELD LASTNAME fields (both bracketed by using Ctl
F9) don't show up after "in memory of".

I'm pretty new to this, and can't even figure out how to copy my actual code
into this question - ctl F9 doesn't work within this question box and doing
Edit, Copy, then Edit, Paste doesn't work either. I can send it to you as a
Word attachment if that would help.

Thanks - I'm sure this is simple but I'm stumped at the moment.
  #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 Mailmerge fields WITHIN the text of IF-then-else

Use

{ IF { MERGEFIELD testfield } = "M" "in memory of { MERGEFIELD firstname }
{ MERGEFIELD lastname }etc." { IF { MERGEFIELD testfield } = "H" "in honour
of { MERGEFIELD firstname } { MERGEFIELD lastname }etc." "." } }

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

"Retread" wrote in message
...
First, thanks to Doug MVP and "Ed" for previous comments regarding MM.
Reading them almost got me the whole way through my "problem". Using
"Ed's"
suggestion from 4/5/2007, I tried to test one field three times :
if it's an "M" text should say "in memory of firstname lastname
(mergefields) then another sentence sending an acknowlegement,
if an "H", "in honor of firstname lastname, etc.
If blank, then put a period at the end of the preceding sentence.

I'm pretty new to this, and can't even figure out how to copy my actual
code
into this question - ctl F9 doesn't work within this question box and
doing
Edit, Copy, then Edit, Paste doesn't work either.
From the code I wrote by nesting Ed's statement (see above) here is what I
get :

in memory of . An acknowledgement will be sent as you requested.

MERGEFIELD FIRSTNAME MERGEFIELD LASTNAME fields (both bracketed by using
Ctl
F9) don't show up after "in memory of".

I'm pretty new to this, and can't even figure out how to copy my actual
code
into this question - ctl F9 doesn't work within this question box and
doing
Edit, Copy, then Edit, Paste doesn't work either. I can send it to you as
a
Word attachment if that would help.

Thanks - I'm sure this is simple but I'm stumped at the moment.



  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default Mailmerge fields WITHIN the text of IF-then-else

Hi Retread,

Assuming you're using the mailmerge toolbar to select the various mergefields, you could code your field as:
{IF«TOGGLE»= "M" "in memory of «FIRSTNAME» «LASTNAME». An acknowledgement will be sent as you requested." {IF«TOGGLE»= "H" "in
honour of «FIRSTNAME» «LASTNAME». An acknowledgement will be sent as you requested." "."} }
where «TOGGLE» is the name of the data field containing the 'M', 'H' or nothing.

Note: The field brace pairs (ie '{ }') for the above example are created via Ctrl-F9 - you can't simply type them or copy & paste
them from this message. Likwise, you can't type the chevrons (ie '« »') - they're part of the actual mergefields, which you can
insert from the mailmerge toolbar.

--
Cheers
macropod
[MVP - Microsoft Word]


"Retread" wrote in message ...
First, thanks to Doug MVP and "Ed" for previous comments regarding MM.
Reading them almost got me the whole way through my "problem". Using "Ed's"
suggestion from 4/5/2007, I tried to test one field three times :
if it's an "M" text should say "in memory of firstname lastname
(mergefields) then another sentence sending an acknowlegement,
if an "H", "in honor of firstname lastname, etc.
If blank, then put a period at the end of the preceding sentence.

I'm pretty new to this, and can't even figure out how to copy my actual code
into this question - ctl F9 doesn't work within this question box and doing
Edit, Copy, then Edit, Paste doesn't work either.
From the code I wrote by nesting Ed's statement (see above) here is what I
get :

in memory of . An acknowledgement will be sent as you requested.

MERGEFIELD FIRSTNAME MERGEFIELD LASTNAME fields (both bracketed by using Ctl
F9) don't show up after "in memory of".

I'm pretty new to this, and can't even figure out how to copy my actual code
into this question - ctl F9 doesn't work within this question box and doing
Edit, Copy, then Edit, Paste doesn't work either. I can send it to you as a
Word attachment if that would help.

Thanks - I'm sure this is simple but I'm stumped at the moment.


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
Mailmerge fields cutting off text JoCo Microsoft Word Help 1 August 19th 08 01:40 PM
how to map mailmerge fields? b.schmidt Mailmerge 3 May 10th 07 02:12 PM
Name fields in mailmerge oe Mailmerge 1 November 16th 05 07:04 PM
MailMerge Fields Bill S. Mailmerge 1 March 22nd 05 09:01 PM
Using MAILMERGE fields within HYPERLINK fields for Merge to Email Mark V Mailmerge 2 December 4th 04 04:01 PM


All times are GMT +1. The time now is 03:24 AM.

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"