C
Csaba Gabor
If I want to insert a page reference, then the drop down shows me the
bookmarks I have named, it also shows me table of contents (TOC)
entries in the form of: _Toc141442210. This seems less than helpful.
So what I'd like to do is run a (vb)script that will match up those
ugly names to the text of the TOC entry. If myField is a vbscript/vba
field reference, then
myField.type: a numeric field type (88 => hyperlink, 37 => pageref, 9
=> TOC entry)
myField.code examples
Type 88: HYPERLINK \l "_Toc141442256"
Type 37: PAGEREF _Toc141442256 \h
Type 9: TC "Introduction " \f C \l "1"
How do I make the matchup from type 9 (TOCEntry) to the corresponding
pageref/hyperlink so that later I can insert my own page reference to
what the TOC Entry points at. In other words, I want to avoid creating
a separate bookmark, when there is already a TOC Entry pointing to a
place of interest.
Thanks,
Csaba Gabor from Vienna
PS. This is on Word 2003 under WinXP
bookmarks I have named, it also shows me table of contents (TOC)
entries in the form of: _Toc141442210. This seems less than helpful.
So what I'd like to do is run a (vb)script that will match up those
ugly names to the text of the TOC entry. If myField is a vbscript/vba
field reference, then
myField.type: a numeric field type (88 => hyperlink, 37 => pageref, 9
=> TOC entry)
myField.code examples
Type 88: HYPERLINK \l "_Toc141442256"
Type 37: PAGEREF _Toc141442256 \h
Type 9: TC "Introduction " \f C \l "1"
How do I make the matchup from type 9 (TOCEntry) to the corresponding
pageref/hyperlink so that later I can insert my own page reference to
what the TOC Entry points at. In other words, I want to avoid creating
a separate bookmark, when there is already a TOC Entry pointing to a
place of interest.
Thanks,
Csaba Gabor from Vienna
PS. This is on Word 2003 under WinXP