Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
ibbm ibbm is offline
external usenet poster
 
Posts: 2
Default Conditional formatting of text

Hi, I am trying to do a merge document that prints different text based on a
Motion field. so i am doing

{IF{MERGEFIELD Motion} = 1 "Text message 1}
{IF {MERGEFIELD Motion} = 2 "Text message 2}

So when I run this if a record has a 1 for the motion i get "Text message 1"
but if it's a 2 I am getting both the Text message 1 and the 2. How can I
get it to only print the approriate text.

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default Conditional formatting of text

Hi ibbm,

If the only possibilities are '1' and '2':
{IF{MERGEFIELD Motion}= 1 "Text message 1" "Text message 2"}

If neither '1' nor '2' is a possibility:
{IF{MERGEFIELD Motion}= 1 "Text message 1"}{IF{MERGEFIELD Motion}= 2 "Text message 2"}
or
{IF{MERGEFIELD Motion}= 1 "Text message 1" {IF{MERGEFIELD Motion}= 2 "Text message 2"}}

--
Cheers
macropod
[Microsoft MVP - Word]


"ibbm" wrote in message news
Hi, I am trying to do a merge document that prints different text based on a
Motion field. so i am doing

{IF{MERGEFIELD Motion} = 1 "Text message 1}
{IF {MERGEFIELD Motion} = 2 "Text message 2}

So when I run this if a record has a 1 for the motion i get "Text message 1"
but if it's a 2 I am getting both the Text message 1 and the 2. How can I
get it to only print the approriate text.

Thanks in advance.

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
Conditional formatting Amin New Users 1 May 16th 09 10:06 PM
Conditional Formatting PCA LEB Microsoft Word Help 3 December 3rd 08 05:50 PM
Conditional formatting of text - how? John Kane Mailmerge 1 July 5th 07 06:26 PM
Conditional Formatting bhodge Mailmerge 2 February 28th 06 04:11 AM
Conditional Formatting roeserb Tables 3 January 12th 06 11:15 AM


All times are GMT +1. The time now is 03:50 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"