A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Mailmerge
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

adding a carriage return in the "Text to be inserted before" section



 
 
Thread Tools Display Modes
  #1  
Old August 25th, 2009, 09:57 PM posted to microsoft.public.word.mailmerge.fields
MichelleChumash
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  
Old August 26th, 2009, 03:42 AM posted to microsoft.public.word.mailmerge.fields
macropod[_2_]
external usenet poster
 
Posts: 2,402
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  
Old August 26th, 2009, 02:29 PM posted to microsoft.public.word.mailmerge.fields
MichelleChumash
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  
Old August 27th, 2009, 02:53 PM posted to microsoft.public.word.mailmerge.fields
Peter Jamieson
external usenet poster
 
Posts: 4,550
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!!!

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:40 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.