View Single Post
  #4   Report Post  
Posted to microsoft.public.word.formatting.longdocs,microsoft.public.word.mailmerge.fields
DSC DSC is offline
external usenet poster
 
Posts: 6
Default Simplifying finding cross-refs: adding descriptive text at end of NOTEREF field harmless or not?



"DSC" wrote in message
...
I need a convenient way to be able to find specific cross-references in a
large document (and to know what they are without having to follow the
link), but the most obvious way of searching the field codes (when in
displayed instead of field results) is meaningless with cross-references
unlike with bookmarks (e.g. NOTEREF _Ref203031962 etc.). The solution that
I found is that I could add descriptive text to the end of the field code
with no apparent harm done in a small test case. I was wondering if I
adopted this on the scale of my large document whether I would eventually
introduce some sort instability, unreliability, or other types of
problems? Or is there some other solution?


"Jonathan West" wrote in message
...

I've no evidence either way as to whether your idea promotes instability
in a document. I'm always hesitant to rely on undocumented features - you
never know whether or when Microsoft might decide the make a change that
happens to affect the feature. if they do, and you relied on it, and your
code no longer works, you have no reason to complain at all.
Therefore, I would suggest that you try very hard to find an alternative
solution before you decide to go down this road.
One thing you might not realise is that _Ref203031962 is in fact a
bookmark name. It is referencing a hidden bookmark, and therefore does not
show up in the Insert Bookmark or the Edit Goto dialogs or even in the
Bookmarks collection of the Document unless you set the
Bookmarks.ShowHidden property to True.
Once you have set ShowHiddent, you can manipulate hidden bookmarks just
like any other.
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup

DSC reply:

Thanks guys for the advice and quick responce. I did know about the hidden
bookmark feature, but that still leaves me with a meaningless list of
numbers which forces me to go to the particular link to figure out what is
there. Where this becomes particularly annoying and prone to error is when
I have 3 or more cross refs. in a row (which frequently happens) and I need
to move, modify, or add to this list. I extensively use the document map,
but it would be much better if I could just put the cursor over the cross
ref. and a popup appears with the reffered footnote text as if it was a
footnote itself. Even if I had in internet style "back" button to backtrack
after following a cross ref. hyperlink that would be O.K. too.
Alternatively is there some way I could force word to let me choose a name
for the normally hidden bookmark of footnotes (e.g. 'JounalName2008_p1010'
instead of _Ref203031962) or get bookmarks to behave like footnotes and
properly keep track of numbering as I add or remove other bookmarks/
footnotes (I tried this and I seems that bookmarks don't behave properly
when used in the footnote section. When I intert a new footnote above an
existing footnote any bookmarks on the latter do not follow the renumbering
properly). I have even tried adding comments on top of my cross refs but I
have to delete the comment before I can follow the hyperlink.


Any additional thoughts?

DSC