Bookmarks and Field Codes

R

Rich

I have added a bookmark into a document. This bookmark then links to several
other areas within the same document to ensure consistency in headers,
titles, etc. The area the bookmark is located is a cell within a table. The
bookmark is defined as the whole cell. This is due to the fact that if
someone deletes the contents of the cell, I do not want them to delete the
bookmark. Similarly, I do not want them to be able to add text outside the
bookmark area, therefore stuffing up my headers and titles.
Bookmarks are working fine. However, my headers do not. Here is what I
have tried:

{Ref [bookmark] } - this field, when updated, turns the text into a table (I
am assuming since the bookmark essentially relates to the cell from the
table. I have tried all the switches (on and off) and this does not work
[Paste-Special - Bookmark] - this works fine, but the field will not update
EVER. I have tried Tools...Options...Update Links (on print and on open).
Nothing will update the links.
Now I know I can write a macro to update the links, but I do not want to.

Is there a field I can use which will bring the text portion of the bookmark
only, and leave behind all formatting - surely there has to be a way!!!

Rich
 
R

Rich

Graham,

Thanks for your feedback. Does not quite answer my question though. I have
no problems updating the fields (print preview is the easiest way to update
fields in my book). My issue comes in that the {Ref} field code brings
across the formatting of the bookmark. Since the bookmark is linked to the
entire cell in a table (I have my reasons for this), the cell is replicated
by the {Ref}. All I want to bring across are the words and not the
formatting.
I have tried all switches from the {Ref} and have tried many other fields.
I do not want to use a macro (but I do know how to). Surely there is a way
to bring the data across without formatting (ie the cell from the table).
Stil stuck but hopeful!

Rich

Graham Mayor said:
Apply a unique character style to the content and use a Styleref field in
the header to recall that style.
REF fields in headers do not automatically update - you'll need a macro
http://www.gmayor.com/installing_macro.htm

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
I have added a bookmark into a document. This bookmark then links to
several other areas within the same document to ensure consistency in
headers, titles, etc. The area the bookmark is located is a cell
within a table. The bookmark is defined as the whole cell. This is
due to the fact that if someone deletes the contents of the cell, I
do not want them to delete the bookmark. Similarly, I do not want
them to be able to add text outside the bookmark area, therefore
stuffing up my headers and titles.
Bookmarks are working fine. However, my headers do not. Here is
what I have tried:

{Ref [bookmark] } - this field, when updated, turns the text into a
table (I am assuming since the bookmark essentially relates to the
cell from the table. I have tried all the switches (on and off) and
this does not work [Paste-Special - Bookmark] - this works fine, but
the field will not update EVER. I have tried
Tools...Options...Update Links (on print and on open). Nothing will
update the links.
Now I know I can write a macro to update the links, but I do not want
to.

Is there a field I can use which will bring the text portion of the
bookmark only, and leave behind all formatting - surely there has to
be a way!!!

Rich
 
S

Suzanne S. Barnhill

Have you tried using the \* charformat switch?

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Rich said:
Graham,

Thanks for your feedback. Does not quite answer my question though. I
have
no problems updating the fields (print preview is the easiest way to
update
fields in my book). My issue comes in that the {Ref} field code brings
across the formatting of the bookmark. Since the bookmark is linked to
the
entire cell in a table (I have my reasons for this), the cell is
replicated
by the {Ref}. All I want to bring across are the words and not the
formatting.
I have tried all switches from the {Ref} and have tried many other fields.
I do not want to use a macro (but I do know how to). Surely there is a
way
to bring the data across without formatting (ie the cell from the table).
Stil stuck but hopeful!

Rich

Graham Mayor said:
Apply a unique character style to the content and use a Styleref field in
the header to recall that style.
REF fields in headers do not automatically update - you'll need a macro
http://www.gmayor.com/installing_macro.htm

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
I have added a bookmark into a document. This bookmark then links to
several other areas within the same document to ensure consistency in
headers, titles, etc. The area the bookmark is located is a cell
within a table. The bookmark is defined as the whole cell. This is
due to the fact that if someone deletes the contents of the cell, I
do not want them to delete the bookmark. Similarly, I do not want
them to be able to add text outside the bookmark area, therefore
stuffing up my headers and titles.
Bookmarks are working fine. However, my headers do not. Here is
what I have tried:

{Ref [bookmark] } - this field, when updated, turns the text into a
table (I am assuming since the bookmark essentially relates to the
cell from the table. I have tried all the switches (on and off) and
this does not work [Paste-Special - Bookmark] - this works fine, but
the field will not update EVER. I have tried
Tools...Options...Update Links (on print and on open). Nothing will
update the links.
Now I know I can write a macro to update the links, but I do not want
to.

Is there a field I can use which will bring the text portion of the
bookmark only, and leave behind all formatting - surely there has to
be a way!!!

Rich
 
G

Graham Mayor

If the cell itself is bookmarked then that will be the content of the cross
reference. You cannot eliminate the cell with a switch!
Did you actually try the styleref field that I suggested as that does what
you want?

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham,

Thanks for your feedback. Does not quite answer my question though.
I have no problems updating the fields (print preview is the easiest
way to update fields in my book). My issue comes in that the {Ref}
field code brings across the formatting of the bookmark. Since the
bookmark is linked to the entire cell in a table (I have my reasons
for this), the cell is replicated by the {Ref}. All I want to bring
across are the words and not the formatting.
I have tried all switches from the {Ref} and have tried many other
fields. I do not want to use a macro (but I do know how to). Surely
there is a way to bring the data across without formatting (ie the
cell from the table). Stil stuck but hopeful!

Rich

Graham Mayor said:
Apply a unique character style to the content and use a Styleref
field in the header to recall that style.
REF fields in headers do not automatically update - you'll need a
macro http://www.gmayor.com/installing_macro.htm

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
I have added a bookmark into a document. This bookmark then links
to several other areas within the same document to ensure
consistency in headers, titles, etc. The area the bookmark is
located is a cell within a table. The bookmark is defined as the
whole cell. This is due to the fact that if someone deletes the
contents of the cell, I do not want them to delete the bookmark.
Similarly, I do not want them to be able to add text outside the
bookmark area, therefore stuffing up my headers and titles.
Bookmarks are working fine. However, my headers do not. Here is
what I have tried:

{Ref [bookmark] } - this field, when updated, turns the text into a
table (I am assuming since the bookmark essentially relates to the
cell from the table. I have tried all the switches (on and off) and
this does not work [Paste-Special - Bookmark] - this works fine, but
the field will not update EVER. I have tried
Tools...Options...Update Links (on print and on open). Nothing will
update the links.
Now I know I can write a macro to update the links, but I do not
want to.

Is there a field I can use which will bring the text portion of the
bookmark only, and leave behind all formatting - surely there has to
be a way!!!

Rich
 
S

Stefan Blom

Since you have bookmarked the entire cell, the REF field works the way it is
supposed to, referencing the cell (and its contents). Graham suggested a way
around this: using a STYLEREF field instead of a bookmark.

If you insist on using a bookmark, you will have to clear any formatting
from the bookmarked cell (cell borders as well as shading).

--
Stefan Blom
Microsoft Word MVP


in message
Graham,

Thanks for your feedback. Does not quite answer my question though. I
have
no problems updating the fields (print preview is the easiest way to
update
fields in my book). My issue comes in that the {Ref} field code brings
across the formatting of the bookmark. Since the bookmark is linked to
the
entire cell in a table (I have my reasons for this), the cell is
replicated
by the {Ref}. All I want to bring across are the words and not the
formatting.
I have tried all switches from the {Ref} and have tried many other fields.
I do not want to use a macro (but I do know how to). Surely there is a
way
to bring the data across without formatting (ie the cell from the table).
Stil stuck but hopeful!

Rich

Graham Mayor said:
Apply a unique character style to the content and use a Styleref field in
the header to recall that style.
REF fields in headers do not automatically update - you'll need a macro
http://www.gmayor.com/installing_macro.htm

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
I have added a bookmark into a document. This bookmark then links to
several other areas within the same document to ensure consistency in
headers, titles, etc. The area the bookmark is located is a cell
within a table. The bookmark is defined as the whole cell. This is
due to the fact that if someone deletes the contents of the cell, I
do not want them to delete the bookmark. Similarly, I do not want
them to be able to add text outside the bookmark area, therefore
stuffing up my headers and titles.
Bookmarks are working fine. However, my headers do not. Here is
what I have tried:

{Ref [bookmark] } - this field, when updated, turns the text into a
table (I am assuming since the bookmark essentially relates to the
cell from the table. I have tried all the switches (on and off) and
this does not work [Paste-Special - Bookmark] - this works fine, but
the field will not update EVER. I have tried
Tools...Options...Update Links (on print and on open). Nothing will
update the links.
Now I know I can write a macro to update the links, but I do not want
to.

Is there a field I can use which will bring the text portion of the
bookmark only, and leave behind all formatting - surely there has to
be a way!!!

Rich
 

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