Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / August 2006

Tip: Looking for answers? Try searching our database.

text between symbol quotes breaking across lines

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pam-austin - 25 Aug 2006 23:42 GMT
I'm using some nested IF codes in a mail merge, and I need smart quotes
inside one of the conditions.  So I'm using a SYMBOL field code to put them
in. This works okay, but the result after merging gives me a problem.  If the
text is near the end of the line, it will break, with the first quote on line
and text and second quote on next line.  I get something like my "
cat"   instead of my "cat".

Inserting non-breaking spaces before and after the quote marks doesn't help
(after all, I'm not trying to keep words separated by a space together, I'm
trying to keep the quotes with the word).

Thanks!
Peter Jamieson - 26 Aug 2006 00:11 GMT
Have you tried the non-break non-space character (in the
Insert|Symbol|Special characters dialog) ? I have a feeling it did not work
at one time, and even now it displays as a sort of rectangle, but on preview
it does seem to disappear and do the job it is supposed to do. I think.

Peter Jamieson

> I'm using some nested IF codes in a mail merge, and I need smart quotes
> inside one of the conditions.  So I'm using a SYMBOL field code to put
[quoted text clipped - 13 lines]
>
> Thanks!
pam-austin - 26 Aug 2006 01:20 GMT
Thanks for the reply.  I just tried inserting a "No-Width Non Break" before
the symbol field and in-between the symbol field and the text.  Looks like a
rectangle on-screen and in  page preview and doesn't fix the breaking
behavior.  I am on Word 2000, but the end users are on Word 2003, so perhaps
it will work for them.

Any other suggestions?  Is there anyway to "escape" a quote within the mail
merge field?  I've tried \ -- it allows the quote to appear without messing
up the output, but displays itself also (i.e. _name is \"Ginger\"_)!  Here
are some details of the code (I think you understand the problem, Peter, just
wanted to give more detail) is something like this:

{IF {MERGEFIELD petname} <> "" "I have a {IF {MERGEFIELD pettype} = "D"
"dog" "cat"} and her name is {MERGEFIELD petname}" "I have no pet"}

This shows properly (_I have a dog and her name is Ginger_). But I need the
petname to have quotes around it.  Putting in plain quotes or smart quotes
ends up with _I have a dog and her name is_  (the sentence just ends because
the merge got confused).

Putting in the {SYMBOL 148 \* MERGEFORMAT} provides the proper output, but
if it ends up near the end of the line I have the breaking problem.

{IF {MERGEFIELD petname} <> "" "I have a {IF {MERGEFIELD pettype} = "D"
"dog" "cat"} and her name is {SYMBOL 147 \* MERGEFORMAT}{MERGEFIELD
petname}{SYMBOL 148 \* MERGEFORMAT}" "I have no pet".}

(keeping or removing mergeformat makes no difference).

> Have you tried the non-break non-space character (in the
> Insert|Symbol|Special characters dialog) ? I have a feeling it did not work
[quoted text clipped - 20 lines]
> >
> > Thanks!
Peter Jamieson - 26 Aug 2006 08:38 GMT
Yes, { QUOTE \" } (where you use the "smart" quote instead of the straight
quote - you can cut and paste one from somewhere else or insert one using
Insert|Symbol) will do it. (You are right that \" does not work when you
insert it directly in the IF field result text.)

Peter Jamieson
> Thanks for the reply.  I just tried inserting a "No-Width Non Break"
> before
[quoted text clipped - 61 lines]
>> >
>> > Thanks!
pam-austin - 28 Aug 2006 15:46 GMT
That worked - it does everything I need with quotes inside the condition,
nested if, and getting the quote in the output with the proper line-breaking.

Thanks so much, Peter!

> Yes, { QUOTE \" } (where you use the "smart" quote instead of the straight
> quote - you can cut and paste one from somewhere else or insert one using
[quoted text clipped - 38 lines]
> >
> > (keeping or removing mergeformat makes no difference).
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.