#1
|
|||
|
|||
Merge Field Formatting
I have a document, in Word 2007, which uses merge fields to pull information from a Case Management Database. The problematic mergefield pulls in a single line of text which has an address in it.
The field is «Case_BC_I1_13» Which, for example, fills in a spot in the letter as: 1 Example Street, Example Town, Example County, Post Code. In the form document the field is bolded, as it is part of a subject line. But the problem is that when the document is merged the line of text is formatted as: 1 Example Street, Example Town, Example County, Post Code. The latter part doesn't bold and I cannot figure out how to make the whole sentence bold. I'm sure it's a switch or something that I'm not aware of. Can anyone suggest anything? Thanks!! |
#2
|
||||
|
||||
Hi Welshie,
To control the mailmerge string formatting, add a 'Charformat' picture switch to the mergefield as follows: • select the mergefield; • press Shift-F9 to expose the field coding. It should look something like {MERGEFIELD Case_BC_I1_13}, where 'Case_BC_I1_13' is your data field's name; • delete everything between 'Case_BC_I1_13' and the closing field brace; • add ' \* Charformat' after 'Case_BC_I1_13', so that you end up with {MERGEFIELD Case_BC_I1_13 \* Charformat}; • format at least the 'M' in 'MERGEFIELD' with the font attributes you want; • position the cursor anywhere in the field and press F9 to update it. • run your mailmerge.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Hmm, I tried that and now the Case Management software reads it as an invalid code. I suspect it's the CM software that's screwing up the formatting, so I will give their helpdesk a call.
Thanks for trying though Macropod. |
#4
|
||||
|
||||
That suggests your CM software isn't performing a mailmerge, but is instead simply using the mergefields as placeholders. In that case, you should be able to obtain the desired result by defining an appropriate Character Style, then applying that Style to the mergefield and whatever character follows it.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
Quote:
|
Tags |
merge field, word 2007 |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Character Count in Merge Field | deddy | Mail Merge | 3 | 10-20-2011 02:20 AM |
Text form field loses formatting in Word 2010 | mel72349 | Word | 0 | 08-02-2011 02:25 PM |
Merge field in header disappearing | Medievalguy88 | Word | 2 | 01-06-2011 08:19 AM |
merge field formatting problem with "text to be inserted before" | wissam | Mail Merge | 0 | 12-13-2009 12:50 AM |
Text Form Field formatting problem | Toshii | Word | 1 | 06-08-2009 07:21 PM |