Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Red Sapphire Red Sapphire is offline
external usenet poster
 
Posts: 1
Default Supressing empty lines in Word 2003 during a mail merge

Hi all,

I know that there is a button somewhere, that leaves out empty fields during
a mail merge thus ensuring that you don't get empty lines or spaces when you
merge a document?

Any help much appreciated!

Thank you
Alison
  #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 Supressing empty lines in Word 2003 during a mail merge

I don't know if there's a button or not - it not being something that I have
ever relied upon. Instead, I use If...then...Else field constructions such
as

{ IF { MERGEFIELD Address2 } "" "{ MERGFIELD Address2 }¶
{ MERGEFIELD City } { MERGEFIELD State } { MERGEFIELD Zip }" "{ MERGEFIELD
City } { MERGEFIELD State } { MERGEFIELD Zip }" }

In such a construction, you must use Ctrl+F9 to insert each pair of field
delimiters { } and where the ¶ appears in the above, press the Enter Key, or
Shift+Enter.

--
Hope this helps,

Doug Robbins - Word MVP

Please reply only to the newsgroups unless you wish to obtain my services on
a paid professional basis.

"Red Sapphire" wrote in message
...
Hi all,

I know that there is a button somewhere, that leaves out empty fields
during
a mail merge thus ensuring that you don't get empty lines or spaces when
you
merge a document?

Any help much appreciated!

Thank you
Alison


  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Kathy Mergulhao Kathy Mergulhao is offline
external usenet poster
 
Posts: 1
Default Suppressing lines in Word Mail Merge

I am looking for the same answer... hopefully someone will know if it can be done.

I am merging Excel data into a Word 2003 table. Each cell contains an If statement. If some of the rows are not needed, therefore empty, I would like the empty row to be deleted from the table.

Is it possible?



Red Sapphire wrote:

Supressing empty lines in Word 2003 during a mail merge
17-Dec-09

Hi all,

I know that there is a button somewhere, that leaves out empty fields during
a mail merge thus ensuring that you do not get empty lines or spaces when you
merge a document?

Any help much appreciated!

Thank you
Alison

Previous Posts In This Thread:


Submitted via EggHeadCafe - Software Developer Portal of Choice
Build a Custom .NET "EVAL" Provider
http://www.eggheadcafe.com/tutorials...-net-eval.aspx
  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default Suppressing lines in Word Mail Merge

Hi Kathy,

Did you read Doug's reply?

Personally, I'd simplify the code to:
{ IF {MERGEFIELD Address2} "" "{MERGFIELD Address2}¶
"}{MERGEFIELD City} {MERGEFIELD State} {MERGEFIELD Zip}
or:
{ IF «Address2» "" "«Address2»¶
"}«City» «State» «Zip»

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

--
Cheers
macropod
[Microsoft MVP - Word]


"Kathy Mergulhao" wrote in message ...
I am looking for the same answer... hopefully someone will know if it can be done.

I am merging Excel data into a Word 2003 table. Each cell contains an If statement. If some of the rows are not needed,
therefore empty, I would like the empty row to be deleted from the table.

Is it possible?



Red Sapphire wrote:

Supressing empty lines in Word 2003 during a mail merge
17-Dec-09

Hi all,

I know that there is a button somewhere, that leaves out empty fields during
a mail merge thus ensuring that you do not get empty lines or spaces when you
merge a document?

Any help much appreciated!

Thank you
Alison

Previous Posts In This Thread:


Submitted via EggHeadCafe - Software Developer Portal of Choice
Build a Custom .NET "EVAL" Provider
http://www.eggheadcafe.com/tutorials...-net-eval.aspx


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
how to remove empty lines from a label mail merge Suzanne Mailmerge 5 July 11th 08 05:57 AM
supressing warning when opening a Word Mail Merge document from Access Paul Mailmerge 6 March 31st 08 08:27 AM
How do I remove blank lines in mail merge labels in Word 2003 Islandtop Mailmerge 2 December 7th 07 06:24 PM
In Word 2003 when mail merge how do I delete an empty field? connie Mailmerge 3 July 23rd 07 05:25 PM
How do I avoid printing blank lines using mail merge in Word 2003. Printerb Mailmerge 1 April 15th 05 11:01 AM


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