Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
[email protected] theoldmole@gmail.com is offline
external usenet poster
 
Posts: 1
Default more than one name (maybe) in greeting line.

I want my greeting line to say:

Dear Mr. Smith and Ms. Jones,

if there is a Ms. Jones (title2 and lastname2)

Dear Mr. Smith,

if there's no Ms. Jones,

Dear Friends,

if there's no Mr. Smith or Mr. Jones.

Here's how I've set it up. I don't know if this will show up if I print
it exactly as I see it on the page, so I'll substitute for {

Dear IF MERGEFIELD Title = "" "Friends" "" MERGEFIELD "Title"
MERGEFIELD "Last_Name" IF MERGEFIELD Title = "M**" "and" ""
MERGEFIELD "Title2" MERGEFIELD "Last_Name2" ,


When this merges, I get

Dear Mr. SmithandMs. Jones,

When there's no Ms. Jones, I get

Dear Mr. Smith , (space before comma)

When it's "friends," I get

Dear friends ,


How do I fix this?

  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default more than one name (maybe) in greeting line.

It would be better if you copied the fields exactly to reveal the extra
space (you could use the macro at http://www.gmayor.com/export_field.htm to
aid that) which should probably give you something like:

Dear { IF{ Mergefield Title } = "" "Friends" "{ Mergefield Title } {
Mergefield Last_Name }"}{ IF{ Mergefield Title} = "M??" " and { Mergefield
Title2 } { Mergefield Last_Name2 }" },

or

Dear { IF{ Mergefield Title } = "" "Friends" "{ Mergefield Title } {
Mergefield Last_Name }"}{ IF{ Mergefield Title2} "" " and { Mergefield
Title2 } { Mergefield Last_Name2 }" },


--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


wrote:
I want my greeting line to say:

Dear Mr. Smith and Ms. Jones,

if there is a Ms. Jones (title2 and lastname2)

Dear Mr. Smith,

if there's no Ms. Jones,

Dear Friends,

if there's no Mr. Smith or Mr. Jones.

Here's how I've set it up. I don't know if this will show up if I
print it exactly as I see it on the page, so I'll substitute for {

Dear IF MERGEFIELD Title = "" "Friends" "" MERGEFIELD "Title"
MERGEFIELD "Last_Name" IF MERGEFIELD Title = "M**" "and" ""
MERGEFIELD "Title2" MERGEFIELD "Last_Name2" ,


When this merges, I get

Dear Mr. SmithandMs. Jones,

When there's no Ms. Jones, I get

Dear Mr. Smith , (space before comma)

When it's "friends," I get

Dear friends ,


How do I fix this?



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
double window envelope tpdebronsky Page Layout 5 May 18th 23 08:51 PM
How to set up greeting line to say Dear Mr. TrevaRPR Microsoft Word Help 3 October 20th 05 06:49 AM
How can i prevent my greeting line from floting up ? sushil Microsoft Word Help 1 August 29th 05 06:39 PM
First and last name in the greeting line. Tony Barker Mailmerge 1 February 22nd 05 11:56 PM
How do I create a greeting line in Mail Merge that says "Dear Dr.. mrose Mailmerge 1 December 28th 04 08:20 PM


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