PC Review


Reply
Thread Tools Rate Thread

Bookmarks and Field Codes

 
 
Rich
Guest
Posts: n/a
 
      29th Nov 2007
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
 
Reply With Quote
 
 
 
 
Graham Mayor
Guest
Posts: n/a
 
      29th Nov 2007
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
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

Rich wrote:
> 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



 
Reply With Quote
 
Rich
Guest
Posts: n/a
 
      29th Nov 2007
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" wrote:

> 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
> Word MVP web site http://word.mvps.org
> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
>
> Rich wrote:
> > 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

>
>
>

 
Reply With Quote
 
Suzanne S. Barnhill
Guest
Posts: n/a
 
      29th Nov 2007
Have you tried using the \* charformat switch?

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

"Rich" <(E-Mail Removed)> wrote in message
news:5F46C2A0-E657-4D0D-AB3A-(E-Mail Removed)...
> 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" wrote:
>
>> 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
>> Word MVP web site http://word.mvps.org
>> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
>>
>> Rich wrote:
>> > 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

>>
>>
>>



 
Reply With Quote
 
Graham Mayor
Guest
Posts: n/a
 
      30th Nov 2007
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
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

Rich wrote:
> 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" wrote:
>
>> 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
>> Word MVP web site http://word.mvps.org
>> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
>>
>> Rich wrote:
>>> 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



 
Reply With Quote
 
Stefan Blom
Guest
Posts: n/a
 
      3rd Dec 2007
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


"Rich" wrote in message
news:5F46C2A0-E657-4D0D-AB3A-(E-Mail Removed)...
> 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" wrote:
>
>> 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
>> Word MVP web site http://word.mvps.org
>> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
>>
>> Rich wrote:
>> > 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

>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Codes are appearing in bookmarks when saving as PDF =?Utf-8?B?SWRlYXMgTGl2ZQ==?= Microsoft Word Document Management 0 15th Sep 2007 02:50 PM
Word 2007 How to manually use bookmarks and field codes? =?Utf-8?B?bWJjaGFtYmVycw==?= Microsoft Word Document Management 1 27th Aug 2007 03:56 AM
Saving word document with field results not field codes =?Utf-8?B?Q2FtYmRvYw==?= Microsoft Word Document Management 2 14th Jul 2006 10:51 AM
Page Reference Codes and Bookmarks or Styles =?Utf-8?B?QyBNYXJzaGFsbA==?= Microsoft Word Document Management 1 12th Jun 2006 11:23 PM
Form Field Bookmarks Wayne Microsoft Word Document Management 1 25th Aug 2004 12:27 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:26 AM.