Word 2007, Modify TOC1 Field, When Update TOC, Reverts to Template

N

Neal O

Problem: Client wants to add field information into the TOC1 entry on the
TOC. For example, they want to pull the information from the Heading 1, have
it display as any Word TOC. But, they want to have text appear from a field
(I've played with the styleref field) and have it appear to the left of the
page number like this:

Info from Heading .........................................{info from
styleref field} - page number

I can get it to work by editing the field in the TOC but when I updated the
TOC, the entry reverts back to the template.

I've tried to edit the TOC1 entry and then save it as a template but that
does not work either.

The styleref field is being used in other places in the document but I could
use a different field.

Thank you for your help. This problem makes me want to drink.

Neal
 
J

Jay Freedman

The problem you're running into is that the entire TOC is just one
field, and it has its own rules about what it displays when it's
updated. That most emphatically does not include allowing other fields
inside it.

There are only two methods that are going to work, and each has a big
gotcha.

- Wait until the entire document is completed. Update the TOC field
one last time. With the cursor somewhere in the field, press
Ctrl+Shift+F9 to unlink the field -- that is, turn it into plain text.
Now insert your StyleRef fields; they won't disappear any more.
Gotcha: The TOC isn't updatable any more; if the document changes,
you'll have to make manual changes in the TOC or redo the whole thing.

- Insert the StyleRef fields as you've been doing. With the cursor
somewhere in the TOC field (but not in a StyleRef field), press
Ctrl+F11 to lock the field. That will prevent the TOC from updating
unless you unlock it by pressing Ctrl+Shift+F11. Gotcha: If you do let
it update, you'll have to reinsert all the StyleRef fields.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.

On Fri, 23 Oct 2009 18:01:01 -0700, Neal O <Neal
 
N

Neal O

Thank You Jay --

I appreciate your time.

I apologize for taking so long to respond.

Neal
 

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