Formatting field does not format all field data

R

Rolf Barbakken

We're making a template with fields. In this template we have a field that
we select and give a style. The template have macros that fill fields with
data.

As we create a new document based on the template, the fields are filled
with data (strings) correctly, but the style is only applied correctly to
the the first word of the string in the field data. Seems like the data in
the fields are only formatted correctly if there are no spaces in the
string.

Why is this? How do we correctly add styles to fields so that all the
fields' data are styled?
 
D

Doug Robbins

Are you using the Charformat switch? With it, you apply the desired
formatting to the first character of the Field code.

--
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
 
R

Rolf Barbakken

No I am not using this switch. Doesn't this mean that I have to enter
"\*Charformat" into every field and format the first character in the field?

I have about 250 templates that I have to convert from one style without
fields into a style using fields, and entering "\*Charformat" for every
field is very time consuming :)
 
D

Doug Robbins

What type of fields are they and what code are you using to populate them?

--
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
 
R

Rolf Barbakken

They are custom fields for a CRM-system. I have no access to the code right
now.

But we're using your first suggestion of using \*Charformat. The progress is
good enough :)

Thanks again, Doug.
 

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