I'm using O2003/W2003.
If I use the merge to email dialog, there is no option to not print
blank lines when data fields are empty but it allows me to merge to
HTML format.
If I use the merge dialog, there is an option to not print blank lines
when data fields are empty but you cannot merge to HTML format (only
plain text).
Is there a way to merge to HTML and not print blank lines when data
fields are empty.
thxs
srm
Cindy M -WordMVP- - 18 Dec 2003 17:25 GMT
Hi Srm,
I'd say you need to use IF fields to test for merge fields being empty,
and include the paragraph mark in the conditional result. Very roughly,
it would look like this
{ IF { Mergefield xyz } <> "" "{Mergefield xyz}¶
" "" }
Where ¶ is where you'd press ENTER. The { field brackets } MUST be
inserted by pressing Ctrl+F9. Alt+F9 will toggle the field codes on/off.
> I'm using O2003/W2003.
>
[quoted text clipped - 8 lines]
> Is there a way to merge to HTML and not print blank lines when data
> fields are empty.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.mvps.org/word
This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :-)
srm - 19 Dec 2003 19:42 GMT
Cindy:
Thank you. That works. Do you know why it is split up like this in Word?
> I'm using O2003/W2003.
>
[quoted text clipped - 12 lines]
>
> srm
Cindy M -WordMVP- - 21 Dec 2003 18:08 GMT
Hi Srm,
> Do you know why it is split up like this in Word?
No, I don't. My best guess would be that the developer who
designed the merge-to-email part didn't realize Word has
the "suppress blank lines" functionality, so didn't allow
for it when writing the code that's doing the conversion.
Or maybe it's a converter that already existed and
therefore doesn't recognize the setting.
Cindy Meister

Signature
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Sep 30 2003)
http://www.mvps.org/word
This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:-)