Field, and formatting

G

gandalf

For Word 97 and above

I have a variable field, tha is a field linked to the comtent of a
document variable.
The variable contains carriage returns and the field is displayed
correctly on multiple lines:

Line1
Line2
Line3

If I apply a numbering formatting to the field, it is displayed
correctly:

1) Line1
2) Line2
3) Line3

But if I do a field update I lose the numbering style, and here's what
i get:

1) Line1
Line2
Line3
Line4

If I do a CTRL-Z it goes back to how it should be

1) Line1
2) Line2
3) Line3
4) Line4

Any hint?

Thanks
 
C

Cindy M -WordMVP-

Hi Gandalf,

As soon as you update a field, anything you've typed into the field or
applied as formatting is removed. This is to be expected; it's how
fields work.

There are a couple of switches you can try adding to the DocVariable
field, although neither were designed to work with number formatting, so
results will be unpredictable, at best: \* CharFormat and \* MErgeformat
I have a variable field, tha is a field linked to the comtent of a
document variable.
The variable contains carriage returns and the field is displayed
correctly on multiple lines:

Line1
Line2
Line3

If I apply a numbering formatting to the field, it is displayed
correctly:

1) Line1
2) Line2
3) Line3

But if I do a field update I lose the numbering style, and here's what
i get:

1) Line1
Line2
Line3
Line4

If I do a CTRL-Z it goes back to how it should be

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :)
 
Top