Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
MichelleChumash MichelleChumash is offline
external usenet poster
 
Posts: 2
Default adding a carriage return in the "Text to be inserted before" section

Is there a way to add a return character before a field using the
field codes with "Text to be inserted before"? For example:

{MERGEFIELD "Name"}
{MERGEFIELD "Address"}
{MERGEFIELD "CityStateZip"}
{MERGEFIELD "Email"}
{MERGEFIELD "Phone"}

but i want the results to be like the follwing if all fields are
populated:

Name
Address
CityStateZip
---- note there is a
carraige return
Email
---- note there is a
carraige return
Phone

If i change the Email to:
{MERGEFIELD "Email" \b "something"}

the result will be

somethingEmail --- if an email exists...

So instead of "Something" is there some character combination i can
put so that it will put a carriage return instead?

Or do i have to use a really complicated if/then statement?

Any help greatly apprecaited!
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default adding a carriage return in the "Text to be inserted before" section

Hi Michelle,

In Word:
.. format the paragraph containing the «Email» field with the appropriate leading/trailing space instead of padding out the space
with unnecessary carriage returns; and
.. choose the 'don't print blank lines' merge option.

Alternatively:
.. duplicate the «Email» field, so that you get «Email»«Email»;
.. select both fields and Press Ctrl-F9 to enclose them in a new field, thus { «Email»«Email» };
.. fill in between the braces so that you end up with {IF«Email»= "" "" "«Email»¶
"}, where the '¶' is a paragraph mark or line-feed, depending on which you're using;
.. delete the existing paragraph mark or line-feed after the field;
.. position the cursor anywhere in this field and press F9 to update it;
.. run your mailmerge.

Not all that complicated, really.

--
Cheers
macropod
[Microsoft MVP - Word]


"MichelleChumash" wrote in message ...
Is there a way to add a return character before a field using the
field codes with "Text to be inserted before"? For example:

{MERGEFIELD "Name"}
{MERGEFIELD "Address"}
{MERGEFIELD "CityStateZip"}
{MERGEFIELD "Email"}
{MERGEFIELD "Phone"}

but i want the results to be like the follwing if all fields are
populated:

Name
Address
CityStateZip
---- note there is a
carraige return
Email
---- note there is a
carraige return
Phone

If i change the Email to:
{MERGEFIELD "Email" \b "something"}

the result will be

somethingEmail --- if an email exists...

So instead of "Something" is there some character combination i can
put so that it will put a carriage return instead?

Or do i have to use a really complicated if/then statement?

Any help greatly apprecaited!


  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
MichelleChumash MichelleChumash is offline
external usenet poster
 
Posts: 2
Default adding a carriage return in the "Text to be inserted before"section

Thank you so much for your suggestions. I think i'll go with the
paragraph formatting of that line, but that second suggestion is very
interesting as well. Of course putting ^p would be so much easier
But I guess we cant' do that.

Thanks again!!!

  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default adding a carriage return in the "Text to be inserted before"section

With Word you generally put an actual paragraph mark in this kind of
scenario, rather than using standard find/replace sequences. It doesn't
quite work in this case because of an interaction with Word's handling
of blank lines in merges (I think) but you might be able to do something
based on

{MERGEFIELD "Name"}
{MERGEFIELD "Address"}
{MERGEFIELD "CityStateZip"}
{MERGEFIELD "Email" \b "
"}{MERGEFIELD "Phone" \b "
"}

where \b "
"

means

\b "press enter to insert a paragraph mark put a paragraph mark here"

Peter Jamieson

http://tips.pjmsn.me.uk

MichelleChumash wrote:
Thank you so much for your suggestions. I think i'll go with the
paragraph formatting of that line, but that second suggestion is very
interesting as well. Of course putting ^p would be so much easier
But I guess we cant' do that.

Thanks again!!!

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
Word Forms: Prevent the "return, next line" in text box FMK Microsoft Word Help 1 February 16th 09 02:03 PM
How do I stop MS Word from adding "shole" whenever I type "as"? George Microsoft Word Help 3 January 11th 07 09:04 PM
Adding "text form field" also UNWANTINGLY makes it a bookmark. gREg Microsoft Word Help 1 January 8th 07 01:22 AM
Adding "text form field" also UNWANTINGLY makes it a bookmark. gREg Microsoft Word Help 0 January 8th 07 12:13 AM
Want "memento mori" "que sera" &c to be acceptable w/o adding each word to dictionary or setting language. Can it be done? Bill Davy New Users 2 February 1st 06 05:16 PM


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