C
Csaba Gabor
Earlier today, Jezebel was kind enough to help me out in determining
the text associated with each of the TOC Entry Ids (see
http://groups.google.com/group/microsoft.public.word.vba.general/browse_frm/thread/82b2e7becb6a27a0/)
Therefore, I can have a Cross Reference point to what a given TOC
(table of contents) entry points to. There is a problem, however, in
that if I update the TOC then the TOC Entry Ids are completely
recalculated and become invalid. That is to say, all Cross References
where I had given a TOC Entry Id would be invalid. No wonder they are
not normally shown under Insert \ Reference \ Cross-reference.
Still, what I want to do is reasonable, so I'm wondering if there isn't
a way I can somehow attach vba code to a Pageref (for example, also
affixing the text of the TOC Entry, which is far less likely to change)
so that when I do update field codes, it will be clever enough to match
up the desired text with the TOC entry whose text currently matches it?
Another way to say this: When I enter a TOC Entry field, Word knows
good and well where it is and what it is. I should be able to have my
PAGEREF (showing page number) field point to that TOC Entry field just
as well as the TOC itself points to the TOC Entry fields. How do I get
there from here?
Thanks for any tips,
Csaba Gabor from Vienna
the text associated with each of the TOC Entry Ids (see
http://groups.google.com/group/microsoft.public.word.vba.general/browse_frm/thread/82b2e7becb6a27a0/)
Therefore, I can have a Cross Reference point to what a given TOC
(table of contents) entry points to. There is a problem, however, in
that if I update the TOC then the TOC Entry Ids are completely
recalculated and become invalid. That is to say, all Cross References
where I had given a TOC Entry Id would be invalid. No wonder they are
not normally shown under Insert \ Reference \ Cross-reference.
Still, what I want to do is reasonable, so I'm wondering if there isn't
a way I can somehow attach vba code to a Pageref (for example, also
affixing the text of the TOC Entry, which is far less likely to change)
so that when I do update field codes, it will be clever enough to match
up the desired text with the TOC entry whose text currently matches it?
Another way to say this: When I enter a TOC Entry field, Word knows
good and well where it is and what it is. I should be able to have my
PAGEREF (showing page number) field point to that TOC Entry field just
as well as the TOC itself points to the TOC Entry fields. How do I get
there from here?
Thanks for any tips,
Csaba Gabor from Vienna