Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Patty White Patty White is offline
external usenet poster
 
Posts: 1
Default Mail Merge "if" statement

I have a merged document with multiple records on each page. I need the
formatting to remain the same throughout the page. I have lines for name,
address, home phone, bus phone, & email. If the business phone is blank in
excel, word is removing the line, thus messing up the formatting for the
record below. How do I make it put a blank line if the information is blank?
Im sure its an "if" statement but I can not figure them out. thx
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
macropod macropod is offline
external usenet poster
 
Posts: 1,002
Default Mail Merge "if" statement

Hi Patty,

If you select the problem mergefield and press Shift-F9, you should see its coding, which will look something like:
{MERGEFIELD Bus_Phone}
if there's a '\b' in the field, eg {MERGEFIELD Bus_Phone \b}, removing it may help.

Other than that, you could put the mergefields into a single-celled table with a fixed row height - or have a separate tab;e row for
each merge line. That way, the rest of the document's formatting won't change if some merge lines are empty.

No need for the complications of an IF test but, if you want one:
{IF{MERGEFIELD Bus_Phone}= "" "ΒΆ
" "{MERGEFIELD Bus_Phone}"}

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"Patty White" wrote in message ...
I have a merged document with multiple records on each page. I need the
formatting to remain the same throughout the page. I have lines for name,
address, home phone, bus phone, & email. If the business phone is blank in
excel, word is removing the line, thus messing up the formatting for the
record below. How do I make it put a blank line if the information is blank?
Im sure its an "if" statement but I can not figure them out. thx


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
email merge with multiple recipients in "To", "CC" & "BCC" Raghu Mailmerge 6 April 21st 23 12:58 PM
what does "professional philosopy statement" mean? rhrld103 Microsoft Word Help 3 February 25th 07 07:53 PM
Mail Merge - Fields missing within "insert merge field" tab jenniclair Mailmerge 7 August 31st 06 11:55 AM
using an alphanumeric "word" as a field value in an IF statement Soma Microsoft Word Help 1 July 26th 06 04:08 PM
Multiple "OR" statements in a single "IF" statement [email protected] Mailmerge 0 June 22nd 06 12:39 PM


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