View Single Post
  #2   Report Post  
Posted to microsoft.public.word.formatting.longdocs,microsoft.public.word.mailmerge.fields
Jonathan West Jonathan West is offline
external usenet poster
 
Posts: 25
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?



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