B
BBM
Hi,
I have a Word document with a Table of Contents in it. I understand from
other posts on this forum that Word automatically inserts Hyperlink fields
into the ToC when it is created to let the user branch from the ToC to the
Heading Text using Ctrl + Click.
The problem is this. My document references other Linked Files (Word
files), and these files contain Heading text that generate ToC entries. When
I first open the document with the ToC in it, each ToC entry has
Error! Bookmark not defined
in place of the page number. If I refresh the ToC (using F9), it corrects
itself. I'd like to fix this (the error not the correction!).
A further complication... This document (and the linked documents) are meant
to be downloaded from the server to a user's PC. The main document (the one
with the ToC) has a VBA sub (that I downloaded from this forum), that
converts the absolute Linked File names that Word creates to names that work
on the User's PC based on the folder the files are downloaded to. This is
working fine. I can download the whole set of docs to any folder and they
properly reference each other. Right now, the only references that get
changed by the code are for fields of type wdFieldIncludeText. I don't think
this code is causing any problems, but it could be that it's not doing enough
(i.e. the ToC hyperlink fields need their references changed too).
My questions:
1) Is the TOC using Hyperlinks or Bookmarks to branch to the Heading from
the ToC? They look to the user like Hyperlinks (Hover Help shows Ctrl +
Click to branch), but it would make sense for them to be bookmarks since
you're moving within the same document. Is this the reason I'm getting an
error message about bookmarks?
2) What is the wdFieldType of the field that Word is inserting for the TOC
branch feature, and where is the file location/name (or bookmark name) of the
hyperlinked/ bookmarked file in the field?
3) Can I just turn off the ToC Hyperlink feature somehow?
Thanks. And sorry for the rambling question.
BBM
I have a Word document with a Table of Contents in it. I understand from
other posts on this forum that Word automatically inserts Hyperlink fields
into the ToC when it is created to let the user branch from the ToC to the
Heading Text using Ctrl + Click.
The problem is this. My document references other Linked Files (Word
files), and these files contain Heading text that generate ToC entries. When
I first open the document with the ToC in it, each ToC entry has
Error! Bookmark not defined
in place of the page number. If I refresh the ToC (using F9), it corrects
itself. I'd like to fix this (the error not the correction!).
A further complication... This document (and the linked documents) are meant
to be downloaded from the server to a user's PC. The main document (the one
with the ToC) has a VBA sub (that I downloaded from this forum), that
converts the absolute Linked File names that Word creates to names that work
on the User's PC based on the folder the files are downloaded to. This is
working fine. I can download the whole set of docs to any folder and they
properly reference each other. Right now, the only references that get
changed by the code are for fields of type wdFieldIncludeText. I don't think
this code is causing any problems, but it could be that it's not doing enough
(i.e. the ToC hyperlink fields need their references changed too).
My questions:
1) Is the TOC using Hyperlinks or Bookmarks to branch to the Heading from
the ToC? They look to the user like Hyperlinks (Hover Help shows Ctrl +
Click to branch), but it would make sense for them to be bookmarks since
you're moving within the same document. Is this the reason I'm getting an
error message about bookmarks?
2) What is the wdFieldType of the field that Word is inserting for the TOC
branch feature, and where is the file location/name (or bookmark name) of the
hyperlinked/ bookmarked file in the field?
3) Can I just turn off the ToC Hyperlink feature somehow?
Thanks. And sorry for the rambling question.
BBM