Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
hlock hlock is offline
external usenet poster
 
Posts: 3
Default Another skip blank line

I have a merge letter addressed as follows:

{MERGEFIELD INSNAM}
{MERGEFIELD "INSAD1"}
{MERGEFIELD "INSAD2"}
{MERGEFIELD "INSAD3}
{MERGEFIELD "INSCITY"}, {MERGEFIELD "INSST"} {MERGEFIELD "INSZIP"}

If INSAD2 is blank, I don't want a blank line. I want it to skip to INSAD3.
IF INSAD3 is empty, I want it to skip to INSCITY, also without leaving a
blank line. How do I code this so that the blank line is skipped when I
merge my file?

Also, sometimes, I get a large space after the INSCITY, but before the
INSST. For example:
PHOENIX , AZ
How do I elimate the blank space at the end of a field?
Thanks for anyone's suggestions.
  #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 Another skip blank line

{MERGEFIELD INSNAM}
{MERGEFIELD "INSAD1"}
{ IF {MERGEFIELD "INSAD2"} "" "{MERGEFIELD "INSAD2"}[ENTER]
{ IF {MERGEFIELD "INSAD3} "" "{MERGEFIELD "INSAD3}[ENTER]
{MERGEFIELD "INSCITY"}, {MERGEFIELD "INSST"} {MERGEFIELD "INSZIP"}"
"{MERGEFIELD "INSCITY"}, {MERGEFIELD "INSST"} {MERGEFIELD "INSZIP"}" }
"{ IF {MERGEFIELD "INSAD3} "" "{MERGEFIELD "INSAD3}[ENTER]
{MERGEFIELD "INSCITY"}, {MERGEFIELD "INSST"} {MERGEFIELD "INSZIP"}"
"{MERGEFIELD "INSCITY"}, {MERGEFIELD "INSST"} {MERGEFIELD "INSZIP"}" }" }

Press the Enter key wherever [ENTER] is located in the above construction.

The spaces between the City and the State must be in the data source and
will need to be removed from there.

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

"hlock" wrote in message
news
I have a merge letter addressed as follows:

{MERGEFIELD INSNAM}
{MERGEFIELD "INSAD1"}
{MERGEFIELD "INSAD2"}
{MERGEFIELD "INSAD3}
{MERGEFIELD "INSCITY"}, {MERGEFIELD "INSST"} {MERGEFIELD "INSZIP"}

If INSAD2 is blank, I don't want a blank line. I want it to skip to
INSAD3.
IF INSAD3 is empty, I want it to skip to INSCITY, also without leaving a
blank line. How do I code this so that the blank line is skipped when I
merge my file?

Also, sometimes, I get a large space after the INSCITY, but before the
INSST. For example:
PHOENIX , AZ
How do I elimate the blank space at the end of a field?
Thanks for anyone's suggestions.



  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Redder Redder is offline
external usenet poster
 
Posts: 2
Default Another skip blank line

I have a tougher nut to crack.

If I have the following:
{MERGEFIELD A}
{MERGEFIELD B}
{MERGEFIELD C}
{MERGEFIELD D}
{MERGEFIELD E}
{MERGEFIELD F}
{MERGEFIELD G}

If I have blank fields from B to F in my Excel worksheet, and I don't want
Word to leave blank lines during mail merge, instead I want it to just show
field A and G. How do you do this?

Using "IF" function in Excel is so much easier than Word.

Any help from Word gurus out there?

Red


"Doug Robbins - Word MVP" wrote:

{MERGEFIELD INSNAM}
{MERGEFIELD "INSAD1"}
{ IF {MERGEFIELD "INSAD2"} "" "{MERGEFIELD "INSAD2"}[ENTER]
{ IF {MERGEFIELD "INSAD3} "" "{MERGEFIELD "INSAD3}[ENTER]
{MERGEFIELD "INSCITY"}, {MERGEFIELD "INSST"} {MERGEFIELD "INSZIP"}"
"{MERGEFIELD "INSCITY"}, {MERGEFIELD "INSST"} {MERGEFIELD "INSZIP"}" }
"{ IF {MERGEFIELD "INSAD3} "" "{MERGEFIELD "INSAD3}[ENTER]
{MERGEFIELD "INSCITY"}, {MERGEFIELD "INSST"} {MERGEFIELD "INSZIP"}"
"{MERGEFIELD "INSCITY"}, {MERGEFIELD "INSST"} {MERGEFIELD "INSZIP"}" }" }

Press the Enter key wherever [ENTER] is located in the above construction.

The spaces between the City and the State must be in the data source and
will need to be removed from there.

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

"hlock" wrote in message
news
I have a merge letter addressed as follows:

{MERGEFIELD INSNAM}
{MERGEFIELD "INSAD1"}
{MERGEFIELD "INSAD2"}
{MERGEFIELD "INSAD3}
{MERGEFIELD "INSCITY"}, {MERGEFIELD "INSST"} {MERGEFIELD "INSZIP"}

If INSAD2 is blank, I don't want a blank line. I want it to skip to
INSAD3.
IF INSAD3 is empty, I want it to skip to INSCITY, also without leaving a
blank line. How do I code this so that the blank line is skipped when I
merge my file?

Also, sometimes, I get a large space after the INSCITY, but before the
INSST. For example:
PHOENIX , AZ
How do I elimate the blank space at the end of a field?
Thanks for anyone's suggestions.




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
Mergefield conditional, need to skip blank line Julie B Mailmerge 2 March 27th 08 05:30 PM
How can I skip blank lines when line numbering? DaRose46 Page Layout 2 March 10th 08 06:52 PM
How do I skip page line numbers for blank lines?? Number nutso Page Layout 2 October 24th 06 08:53 PM
How do I skip line numbering on blank lines? MKA Page Layout 3 May 31st 05 02:05 PM
How to skip line numbers for all blank lines in a document Winnipegger Page Layout 1 February 25th 05 04:27 AM


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