Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Kim Kim is offline
external usenet poster
 
Posts: 4
Default Suppress a tab between fields when the fields are blank!

I followed the instructions to suppress a line when the line is empty,
but my problem is I have two fields with a tab between them. How do I
suppress the tab so the paragraph line will be suppressed/hidden? Here
are my fields (MedOptLabel tab Medical Option):

{IF{MERGEFIELD "MedOptLabel" } "" "{MERGEFIELD "MedOptLabel" }^t{IF
{MERGEFIELD "Medical_Option"} "" " {MERGEFIELD "Medical_Option"}^p

Is there any way to bring the tab into the formula so it'll get
suppressed along with the paragraph mark? Any help would be
appreciated.

Kim
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Suppress a tab between fields when the fields are blank!

I suspect you need something like

{ IF "{ MERGEFIELD "MedOptLabel" }{ MERGEFIELD "Medical_Option" }" ""
"{ IF "{MERGEFIELD "MedOptLabel" }" "" "{ MERGEFIELD "MedOptLabel"
}^t{ IF "{ MERGEFIELD "Medical_Option" }" "" " {MERGEFIELD
"Medical_Option"}^p" }

where the ^t and ^p are actual tab and paragraph characters respectively.

(assuming you don't care about a trailing tab when Medical_Option is
blank but MedOptLabel is not)

Peter Jamieson

http://tips.pjmsn.me.uk

On 04/12/2009 18:07, Kim wrote:
I followed the instructions to suppress a line when the line is empty,
but my problem is I have two fields with a tab between them. How do I
suppress the tab so the paragraph line will be suppressed/hidden? Here
are my fields (MedOptLabeltab Medical Option):

{IF{MERGEFIELD "MedOptLabel" } "" "{MERGEFIELD "MedOptLabel" }^t{IF
{MERGEFIELD "Medical_Option"} "" " {MERGEFIELD "Medical_Option"}^p

Is there any way to bring the tab into the formula so it'll get
suppressed along with the paragraph mark? Any help would be
appreciated.

Kim

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 do I suppress printing blank fields in Word '07? Lynette Mailmerge 1 February 6th 08 10:14 AM
How to suppress the blank lines while mering fields in Word docume CoolVBA Mailmerge 3 July 2nd 07 09:08 AM
suppress blank fields in template Alicia Microsoft Word Help 1 June 1st 06 08:59 PM
How do I suppress printing blank fields in a mail merge? nvlo Microsoft Word Help 1 January 18th 06 01:15 AM
suppress spaces left by blank mail merge fields k2swan Mailmerge 1 November 18th 05 10:41 PM


All times are GMT +1. The time now is 11:55 AM.

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"