In Word, you can set the value of a bookmark in a number of ways, including:
a. you insert some text (and perhaps other stuff), select it, then use
Insert|Bookmark to bookmark that piece of text
b. you use a { SET mybookmark "myvalue" } or { ASK mybookmark "myvalue?"}
field to assign a value to a bookmark
To display the value of a bookmark, however you created it, you can use a
{ REF mybookmark } field.
However, what /doesn't happen in Word is that if you bookmark a piece of
text, then use a SET or ASK field to assign a new value to the bookmark, the
text that you previously bookmarked changes to reflect the new value (in
fact, when Word executes a SET or ASK, the /location/ of the bookmark
changes as well, to be a point location at the point where the SET or ASK
field was entered.
This is probably more than you want to know, but...)
Another thing to be aware of is that a REF field will display the value of
the bookmark at the tim the REF field is executed. So if you have
a: <a piece of text that says valuea and is bookmarked "bma">
b: { REF bma }
c:
d: { REF bma }
and select the document and press F9 to re-execute all the fields, you would
see
a: valuea
b: valuea
c:
d: valuea
If you then change
c:
to be
c: { SET bma valueb }
then select the document and press F9 to re-execute all the field codes, you
should see
a: valuea
b: valuea
c:
d: valueb
because until the SET is exectued, the value of { REF bma } is still valuea
then select the document again and press F9 and you should see
a: valuea
b: valueb
c:
d: valueb
Peter Jamieson