Losing bold and underline w/INCLUDETEXT fields

K

Kathy Webster

I'm using the INCLUDETEXT command within a merge document to call in a
subdoc while merging. The subdoc also contains merge fields, ie,
{MERGEFIELD Lastname}. Although the {MERGEFIELD Lastname} field is bold and
underlined in the subdoc, when it merges into the final product, the bold
and underline are gone. I've tried \*mergeformat and \*charformat with no
success.

Can I get some help?
Thanks.
 
M

macropod

Hi Kathy,

I'd have thought that, if your {MERGEFIELD Lastname} field had a charformat switch (ie {MERGEFIELD Lastname \* charformat} and the
'M' was formatted with the bold and underlined attributes, these would have been preserved.

Since that seems not to work, have you tried adding a character style to the {MERGEFIELD Lastname} field in the subdoc, with the
bold and underlined attributes?

Another possibility, is adding a '\*!' switch to your INCLUDTEXT field.

I'm not sure if either method will work, but it's worth a try.

Cheers
 
P

Peter Jamieson

One thing to check here is that you are not using the same paragraph style
name in your main and sub, but with different style definitions. Although
Word uses some combination of the styles and formatting in the main
document, the styles and formatting inthe subdocument, and the formatting
applied to the field, I really couldn't tell you what the rules are exactly.

Peter Jamieson
 
K

Kathy Webster

Wow, what does \*! mean?
Also, since I really have to get up to speed on all these merge codes and
their possibilities, can anyone recommend a good source for studying all
about advanced merge codes features, so I can give WordPerfect a run for its
money? I'm so tired of everyone claiming that WP is so much more powerful
than Word in this department...I'm sure its just a matter of learning the
way Word does these things... :)

macropod said:
Hi Kathy,

I'd have thought that, if your {MERGEFIELD Lastname} field had a
charformat switch (ie {MERGEFIELD Lastname \* charformat} and the 'M' was
formatted with the bold and underlined attributes, these would have been
preserved.

Since that seems not to work, have you tried adding a character style to
the {MERGEFIELD Lastname} field in the subdoc, with the bold and
underlined attributes?

Another possibility, is adding a '\*!' switch to your INCLUDTEXT field.

I'm not sure if either method will work, but it's worth a try.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

Kathy Webster said:
I'm using the INCLUDETEXT command within a merge document to call in a
subdoc while merging. The subdoc also contains merge fields, ie,
{MERGEFIELD Lastname}. Although the {MERGEFIELD Lastname} field is bold
and underlined in the subdoc, when it merges into the final product, the
bold and underline are gone. I've tried \*mergeformat and \*charformat
with no success.

Can I get some help?
Thanks.
 
K

Kathy Webster

Thanks, I checked that and its not the case. But even if it was the case,
if I specifically indicate that a mergefield within a paragraph should have
a specific format, one would think it would override a style code of a
paragraph. :-|
 
P

Peter Jamieson

\*! means "lock the result.

Word Help (prior to Word 2007, anyway) is as good a place to start as any
with field codes and switches. Look for "Automating Tasks and
Programmability" in the Table of Contents
I'm so tired of everyone claiming that WP is so much more powerful than
Word in this department...I'm sure its just a matter of learning the way
Word does these things... :)

Peter Jamieson

Kathy Webster said:
Wow, what does \*! mean?
Also, since I really have to get up to speed on all these merge codes and
their possibilities, can anyone recommend a good source for studying all
about advanced merge codes features, so I can give WordPerfect a run for
its money? I'm so tired of everyone claiming that WP is so much more
powerful than Word in this department...I'm sure its just a matter of
learning the way Word does these things... :)

macropod said:
Hi Kathy,

I'd have thought that, if your {MERGEFIELD Lastname} field had a
charformat switch (ie {MERGEFIELD Lastname \* charformat} and the 'M' was
formatted with the bold and underlined attributes, these would have been
preserved.

Since that seems not to work, have you tried adding a character style to
the {MERGEFIELD Lastname} field in the subdoc, with the bold and
underlined attributes?

Another possibility, is adding a '\*!' switch to your INCLUDTEXT field.

I'm not sure if either method will work, but it's worth a try.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

Kathy Webster said:
I'm using the INCLUDETEXT command within a merge document to call in a
subdoc while merging. The subdoc also contains merge fields, ie,
{MERGEFIELD Lastname}. Although the {MERGEFIELD Lastname} field is bold
and underlined in the subdoc, when it merges into the final product, the
bold and underline are gone. I've tried \*mergeformat and \*charformat
with no success.

Can I get some help?
Thanks.
 
P

Peter Jamieson

I'm not sure this is going to answer your question, but here goes anyway...
one would think it would override a style code of a paragraph

I would also tend to hope that, but there are some things to watch out for
in all this, e.g.
----------------------------------------------
1. with styles in general and formatting fields in particular, Word tends
to see formatting in terms of the differences between
- the styles that pertain to the text in question and
- the direct formatting you apply

So, to give a contrived example, suppose you have a subdocument with a
single paragraph containing some text and a MERGEFIELD field with no
switches. The paragraph style says "underlined", but actually you format
everything in the paragraph /except/ the field as not underlined. (OK, I
said it was contrived). Then in your mail merge main document, you
INCLUDETEXT the file in a normal paragraph with no underlining.

In this case you should not see any underlining in the output. Word applies
the style and formatting of the main document, which is not underlined. The
text in the subdocument is not underlined anyway, but in the case of the
underlined field, well, its formatting is no different from the paragraph
style. But Word isn't looking at the paragraph style, just differences
between the paragraph style and direct formatting, and there are none in
this case. So the result is not underlined. If however, you colour the
MERGEFIELD red, red will appear in the result. What's more, there is no
difference if you use \*Charformat, which is distressing,.

Actually, I don't think my description is completely accurate but the person
to ask IMO is John McGhie who probably understands these style mixing issues
better than anyone (You're more likely to find him in the Mac Word group).
----------------------------------------------
2. In your main document, in a Normal paragraph, insert your INCLUDETEXT
field with no switches. Then change the formatting of the field or
paragraph, e.g. the font. Do you see a \*Mergeformat being added? Maybe not,
but here I do, at the moment. I can kill the \*Mergeformat but I'm not sure
how long it stays dead.

The trouble with \*Mergeformat is that
- its name isn't exactly self-explanatory, and in fact I think it's quite
misleading. I suspect a lot of people think it's kind of the opposite of
\*charformat, and applies the format of the surrounding text.
- at some point, someone in Microsoft started adding \*Mergeformat by
default to pretty well every field that anyone inserted through the user
interface. I suspect they didn't understand what it does, either. Word Help
nearly gets it right

"Applies the formatting of the previous result to the new result. For
example, if you select the name displayed by the field { AUTHOR \*
MERGEFORMAT } and apply bold formatting, Microsoft Word retains the bold
formatting when the field is updated when the author name changes. "

If that's all it does, why would you need it? Why not just apply the
formatting to the field and have the result be the same as the field? Well,
one reason is that the current Help only tells part of the story. The
original Word for Windows Help (and I'm going back to my WfW1 manual) says
that \*Mergeformat

"Applies the formatting of the previous result, word for word, to the new
result."

"If there is no previous result, applies the formatting of the first
character after the opening field character ({) to the result."

(I think it means the first non-blank character - in those days Word did not
insert extra space before field names).

There's more, to do with what happens if the number of words changes, but I
think it may be wrong or changed.

So \*Mergeformat is tricky, and things are likely to be even trickier when
it's applied to an INCLUDETEXT which is including a variable amount of text.
So Word adding a sneaky \*Mergeformat isn't a great help.
----------------------------------------------
3. (Probably not relevant to your problem, but perhaps worth mentioning
anyway). If you merge to a new document, INCLUDETEXT fields are retained in
the output. Word evaluates the included text in each case and inserts the
results, otherwise it wouldn't work at all. But if you actually select all
those INCLUDETEXTs and press F9, the original file is inserted with all its
{ MERGEFIELD } codes etc. So beware! - if you need to keep the results,
"fix" them by selecting everything and using ctrl-shift-F9.

Sorry, it's late here and I'm rambling...

Peter Jamieson
 
K

Kathy Webster

1. I tried \*! and I got:
Error! Unknown switch argument.

(Word 2002.)
2. I clicked Help, Microsoft Word Help, Contents. I don't see
"Automating Tasks and
Programmability"

Peter Jamieson said:
\*! means "lock the result.

Word Help (prior to Word 2007, anyway) is as good a place to start as any
with field codes and switches. Look for "Automating Tasks and
Programmability" in the Table of Contents
I'm so tired of everyone claiming that WP is so much more powerful than
Word in this department...I'm sure its just a matter of learning the way
Word does these things... :)

Peter Jamieson

Kathy Webster said:
Wow, what does \*! mean?
Also, since I really have to get up to speed on all these merge codes and
their possibilities, can anyone recommend a good source for studying all
about advanced merge codes features, so I can give WordPerfect a run for
its money? I'm so tired of everyone claiming that WP is so much more
powerful than Word in this department...I'm sure its just a matter of
learning the way Word does these things... :)

macropod said:
Hi Kathy,

I'd have thought that, if your {MERGEFIELD Lastname} field had a
charformat switch (ie {MERGEFIELD Lastname \* charformat} and the 'M'
was formatted with the bold and underlined attributes, these would have
been preserved.

Since that seems not to work, have you tried adding a character style to
the {MERGEFIELD Lastname} field in the subdoc, with the bold and
underlined attributes?

Another possibility, is adding a '\*!' switch to your INCLUDTEXT field.

I'm not sure if either method will work, but it's worth a try.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------


I'm using the INCLUDETEXT command within a merge document to call in a
subdoc while merging. The subdoc also contains merge fields, ie,
{MERGEFIELD Lastname}. Although the {MERGEFIELD Lastname} field is
bold and underlined in the subdoc, when it merges into the final
product, the bold and underline are gone. I've tried \*mergeformat and
\*charformat with no success.

Can I get some help?
Thanks.
 
P

Peter Jamieson

1. I tried \*! and I got:
Error! Unknown switch argument.

Sorry, should be just \!
2. I clicked Help, Microsoft Word Help, Contents. I don't see
"Automating Tasks and

I'll see if I can find it.

Peter Jamieson

Kathy Webster said:
1. I tried \*! and I got:
Error! Unknown switch argument.

(Word 2002.)
2. I clicked Help, Microsoft Word Help, Contents. I don't see
"Automating Tasks and
Programmability"

Peter Jamieson said:
\*! means "lock the result.

Word Help (prior to Word 2007, anyway) is as good a place to start as any
with field codes and switches. Look for "Automating Tasks and
Programmability" in the Table of Contents
I'm so tired of everyone claiming that WP is so much more powerful than
Word in this department...I'm sure its just a matter of learning the way
Word does these things... :)

Peter Jamieson

Kathy Webster said:
Wow, what does \*! mean?
Also, since I really have to get up to speed on all these merge codes
and their possibilities, can anyone recommend a good source for studying
all about advanced merge codes features, so I can give WordPerfect a run
for its money? I'm so tired of everyone claiming that WP is so much
more powerful than Word in this department...I'm sure its just a matter
of learning the way Word does these things... :)

Hi Kathy,

I'd have thought that, if your {MERGEFIELD Lastname} field had a
charformat switch (ie {MERGEFIELD Lastname \* charformat} and the 'M'
was formatted with the bold and underlined attributes, these would have
been preserved.

Since that seems not to work, have you tried adding a character style
to the {MERGEFIELD Lastname} field in the subdoc, with the bold and
underlined attributes?

Another possibility, is adding a '\*!' switch to your INCLUDTEXT field.

I'm not sure if either method will work, but it's worth a try.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------


I'm using the INCLUDETEXT command within a merge document to call in a
subdoc while merging. The subdoc also contains merge fields, ie,
{MERGEFIELD Lastname}. Although the {MERGEFIELD Lastname} field is
bold and underlined in the subdoc, when it merges into the final
product, the bold and underline are gone. I've tried \*mergeformat
and \*charformat with no success.

Can I get some help?
Thanks.
 
M

macropod

Hi Kathy,

Sorry, that should habe been \!

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

Kathy Webster said:
1. I tried \*! and I got:
Error! Unknown switch argument.

(Word 2002.)
2. I clicked Help, Microsoft Word Help, Contents. I don't see
"Automating Tasks and
Programmability"

Peter Jamieson said:
\*! means "lock the result.

Word Help (prior to Word 2007, anyway) is as good a place to start as any
with field codes and switches. Look for "Automating Tasks and
Programmability" in the Table of Contents
I'm so tired of everyone claiming that WP is so much more powerful than
Word in this department...I'm sure its just a matter of learning the way
Word does these things... :)

Peter Jamieson

Kathy Webster said:
Wow, what does \*! mean?
Also, since I really have to get up to speed on all these merge codes and
their possibilities, can anyone recommend a good source for studying all
about advanced merge codes features, so I can give WordPerfect a run for
its money? I'm so tired of everyone claiming that WP is so much more
powerful than Word in this department...I'm sure its just a matter of
learning the way Word does these things... :)

Hi Kathy,

I'd have thought that, if your {MERGEFIELD Lastname} field had a
charformat switch (ie {MERGEFIELD Lastname \* charformat} and the 'M'
was formatted with the bold and underlined attributes, these would have
been preserved.

Since that seems not to work, have you tried adding a character style to
the {MERGEFIELD Lastname} field in the subdoc, with the bold and
underlined attributes?

Another possibility, is adding a '\*!' switch to your INCLUDTEXT field.

I'm not sure if either method will work, but it's worth a try.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------


I'm using the INCLUDETEXT command within a merge document to call in a
subdoc while merging. The subdoc also contains merge fields, ie,
{MERGEFIELD Lastname}. Although the {MERGEFIELD Lastname} field is
bold and underlined in the subdoc, when it merges into the final
product, the bold and underline are gone. I've tried \*mergeformat and
\*charformat with no success.

Can I get some help?
Thanks.
 
P

Peter Jamieson

(Word 2002.)
2. I clicked Help, Microsoft Word Help, Contents. I don't see
"Automating Tasks and

In Word 2002, the ToC heading is "Field Types and Switches"

Peter Jamieson

Kathy Webster said:
1. I tried \*! and I got:
Error! Unknown switch argument.

(Word 2002.)
2. I clicked Help, Microsoft Word Help, Contents. I don't see
"Automating Tasks and
Programmability"

Peter Jamieson said:
\*! means "lock the result.

Word Help (prior to Word 2007, anyway) is as good a place to start as any
with field codes and switches. Look for "Automating Tasks and
Programmability" in the Table of Contents
I'm so tired of everyone claiming that WP is so much more powerful than
Word in this department...I'm sure its just a matter of learning the way
Word does these things... :)

Peter Jamieson

Kathy Webster said:
Wow, what does \*! mean?
Also, since I really have to get up to speed on all these merge codes
and their possibilities, can anyone recommend a good source for studying
all about advanced merge codes features, so I can give WordPerfect a run
for its money? I'm so tired of everyone claiming that WP is so much
more powerful than Word in this department...I'm sure its just a matter
of learning the way Word does these things... :)

Hi Kathy,

I'd have thought that, if your {MERGEFIELD Lastname} field had a
charformat switch (ie {MERGEFIELD Lastname \* charformat} and the 'M'
was formatted with the bold and underlined attributes, these would have
been preserved.

Since that seems not to work, have you tried adding a character style
to the {MERGEFIELD Lastname} field in the subdoc, with the bold and
underlined attributes?

Another possibility, is adding a '\*!' switch to your INCLUDTEXT field.

I'm not sure if either method will work, but it's worth a try.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------


I'm using the INCLUDETEXT command within a merge document to call in a
subdoc while merging. The subdoc also contains merge fields, ie,
{MERGEFIELD Lastname}. Although the {MERGEFIELD Lastname} field is
bold and underlined in the subdoc, when it merges into the final
product, the bold and underline are gone. I've tried \*mergeformat
and \*charformat with no success.

Can I get some help?
Thanks.
 
K

Kathy Webster

Found it! Thanks!
p.s. Is it proper etiquitte to reply w/a thanks, or does that just clog up
the works?

Peter Jamieson said:
(Word 2002.)
2. I clicked Help, Microsoft Word Help, Contents. I don't see
"Automating Tasks and

In Word 2002, the ToC heading is "Field Types and Switches"

Peter Jamieson

Kathy Webster said:
1. I tried \*! and I got:
Error! Unknown switch argument.

(Word 2002.)
2. I clicked Help, Microsoft Word Help, Contents. I don't see
"Automating Tasks and
Programmability"

Peter Jamieson said:
\*! means "lock the result.

Word Help (prior to Word 2007, anyway) is as good a place to start as
any with field codes and switches. Look for "Automating Tasks and
Programmability" in the Table of Contents

I'm so tired of everyone claiming that WP is so much more powerful than
Word in this department...I'm sure its just a matter of learning the
way Word does these things... :)

Peter Jamieson

Wow, what does \*! mean?
Also, since I really have to get up to speed on all these merge codes
and their possibilities, can anyone recommend a good source for
studying all about advanced merge codes features, so I can give
WordPerfect a run for its money? I'm so tired of everyone claiming
that WP is so much more powerful than Word in this department...I'm
sure its just a matter of learning the way Word does these things... :)

Hi Kathy,

I'd have thought that, if your {MERGEFIELD Lastname} field had a
charformat switch (ie {MERGEFIELD Lastname \* charformat} and the 'M'
was formatted with the bold and underlined attributes, these would
have been preserved.

Since that seems not to work, have you tried adding a character style
to the {MERGEFIELD Lastname} field in the subdoc, with the bold and
underlined attributes?

Another possibility, is adding a '\*!' switch to your INCLUDTEXT
field.

I'm not sure if either method will work, but it's worth a try.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------


I'm using the INCLUDETEXT command within a merge document to call in
a subdoc while merging. The subdoc also contains merge fields, ie,
{MERGEFIELD Lastname}. Although the {MERGEFIELD Lastname} field is
bold and underlined in the subdoc, when it merges into the final
product, the bold and underline are gone. I've tried \*mergeformat
and \*charformat with no success.

Can I get some help?
Thanks.
 
P

Peter Jamieson

p.s. Is it proper etiquitte to reply w/a thanks, or does that just clog up
the works?

I don't know these days. It's nice to get positive feedback but it's more
useful for posterity when it's confirming that something a bit experimental
actually worked (or didn't). It's probably also worth chopping out
everything beloow the specific message you're responding to.

Peter Jamieson
Kathy Webster said:
Found it! Thanks!
p.s. Is it proper etiquitte to reply w/a thanks, or does that just clog up
the works?

Peter Jamieson said:
(Word 2002.)
2. I clicked Help, Microsoft Word Help, Contents. I don't see
"Automating Tasks and
Programmability"

In Word 2002, the ToC heading is "Field Types and Switches"

Peter Jamieson

Kathy Webster said:
1. I tried \*! and I got:
Error! Unknown switch argument.

(Word 2002.)
2. I clicked Help, Microsoft Word Help, Contents. I don't see
"Automating Tasks and
Programmability"

\*! means "lock the result.

Word Help (prior to Word 2007, anyway) is as good a place to start as
any with field codes and switches. Look for "Automating Tasks and
Programmability" in the Table of Contents

I'm so tired of everyone claiming that WP is so much more powerful
than Word in this department...I'm sure its just a matter of learning
the way Word does these things... :)

Peter Jamieson

Wow, what does \*! mean?
Also, since I really have to get up to speed on all these merge codes
and their possibilities, can anyone recommend a good source for
studying all about advanced merge codes features, so I can give
WordPerfect a run for its money? I'm so tired of everyone claiming
that WP is so much more powerful than Word in this department...I'm
sure its just a matter of learning the way Word does these things...
:)

Hi Kathy,

I'd have thought that, if your {MERGEFIELD Lastname} field had a
charformat switch (ie {MERGEFIELD Lastname \* charformat} and the 'M'
was formatted with the bold and underlined attributes, these would
have been preserved.

Since that seems not to work, have you tried adding a character style
to the {MERGEFIELD Lastname} field in the subdoc, with the bold and
underlined attributes?

Another possibility, is adding a '\*!' switch to your INCLUDTEXT
field.

I'm not sure if either method will work, but it's worth a try.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------


I'm using the INCLUDETEXT command within a merge document to call in
a subdoc while merging. The subdoc also contains merge fields, ie,
{MERGEFIELD Lastname}. Although the {MERGEFIELD Lastname} field is
bold and underlined in the subdoc, when it merges into the final
product, the bold and underline are gone. I've tried \*mergeformat
and \*charformat with no success.

Can I get some help?
Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top