Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
THE Burg THE Burg is offline
external usenet poster
 
Posts: 3
Default Conditional formatting of Mailmerge fields

I have some missing data in my database and want output documents to look
like printed forms with underlined blanks for these data. Have accomplished
this by putting series of underscores in the fields in the Excel database.
Would also like to highlight fields that need filled in to bring them to
document user's attention. I can highlight the field in the document, but
all results, even those that have values are highlighted. Is there a way to
highlight a field in the document ONLY when a certain condition exists -- say
the 2nd character in the field string is an underscore?
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Conditional formatting of Mailmerge fields

Rather than having the underscores in the data source, you could use the
following field construction

{ IF { MERGEFIELD fieldthatmightbeempty } "" { MERGEFIELD
fieldthatmightbeempty} { QUOTE "Please supply missing data" \*
Charformat } }

and format font to make the Q of QUOTE Red. If the field is empty, the
text "Please supply missing data" will be inserted in the document in Red

If you have the same number of underscores in each of the fields in the data
source, you could use

{ IF { MERGEFIELD fieldthatmightbeempty } "____" { MERGEFIELD
fieldthatmightbeempty} { QUOTE "____" \* Charformat } }

where the number of _ in the first ____ equals that in the data source and
then with the Q of QUOTE formatted as Red, the underscores in the merged
document would also be Red.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"THE Burg" wrote in message
...
I have some missing data in my database and want output documents to look
like printed forms with underlined blanks for these data. Have
accomplished
this by putting series of underscores in the fields in the Excel database.
Would also like to highlight fields that need filled in to bring them to
document user's attention. I can highlight the field in the document, but
all results, even those that have values are highlighted. Is there a way
to
highlight a field in the document ONLY when a certain condition exists --
say
the 2nd character in the field string is an underscore?



  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default Conditional formatting of Mailmerge fields

Hi Burg,

Doug's given some good advice. To test whether the second character is an undersco:
{IF{MERGEFIELD Data}= "?_*" {QUOTE "Missing data" \* Charformat} {MERGEFIELD Data}}
with the 'Q' in 'QUOTE' formatted per your conditional format.

--
Cheers
macropod
[MVP - Microsoft Word]


"THE Burg" wrote in message ...
I have some missing data in my database and want output documents to look
like printed forms with underlined blanks for these data. Have accomplished
this by putting series of underscores in the fields in the Excel database.
Would also like to highlight fields that need filled in to bring them to
document user's attention. I can highlight the field in the document, but
all results, even those that have values are highlighted. Is there a way to
highlight a field in the document ONLY when a certain condition exists -- say
the 2nd character in the field string is an underscore?

  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
THE Burg THE Burg is offline
external usenet poster
 
Posts: 3
Default Conditional formatting of Mailmerge fields

Thanks to both of you -- that took care of it!

"macropod" wrote:

Hi Burg,

Doug's given some good advice. To test whether the second character is an undersco:
{IF{MERGEFIELD Data}= "?_*" {QUOTE "Missing data" \* Charformat} {MERGEFIELD Data}}
with the 'Q' in 'QUOTE' formatted per your conditional format.

--
Cheers
macropod
[MVP - Microsoft Word]


"THE Burg" wrote in message ...
I have some missing data in my database and want output documents to look
like printed forms with underlined blanks for these data. Have accomplished
this by putting series of underscores in the fields in the Excel database.
Would also like to highlight fields that need filled in to bring them to
document user's attention. I can highlight the field in the document, but
all results, even those that have values are highlighted. Is there a way to
highlight a field in the document ONLY when a certain condition exists -- say
the 2nd character in the field string is an underscore?


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
Conditional Wordart via Mailmerge-Field? Lüko Willms Mailmerge 3 October 13th 06 04:57 AM
"Conditional formatting" in Word drop-down form fields Benjamin Microsoft Word Help 2 September 8th 06 12:33 PM
Multiple Conditional Characters in Mailmerge Tim Whitley Mailmerge 2 April 23rd 06 08:24 PM
Conditional fields Island Girl New Users 5 April 18th 06 12:56 AM
How do I set up a conditional page break in word mailmerge? Shandyw Mailmerge 3 June 23rd 05 06:02 PM


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