View Single Post
  #7   Report Post  
Posted to microsoft.public.word.docmanagement
Cindy M -WordMVP- Cindy M  -WordMVP- is offline
external usenet poster
 
Posts: 370
Default Find cross-reference from reference

Hi ?B?S2hvc2hyYXZhbg==?=,

Thanks for your info. Sorry for late response. Today almost after one month
I find time and mood to work on the Macro you sent for finding
cross-references from references. In your reply, you have mentioned that: €¯it
does work if I have the selection in a Heading€¯. I copy-paste your Macro and
Run it and it says: "couldn't find a reference". But I have.
I think it has something to with "Heading" you mentioned.
What I understand from your post is that your Macro will look for
cross-references only in Headings and not any place else. Am I right?
Isn't it possible to modify the Macro to look in whole area of the file for
cross-references?

No, the macro isn't specific for Headings, that's just the only scenario I tested
for. You didn't provide any information about what you cross-reference, so I took
the most common scenario.

What the macro does is check whether the current selection is inside at least one
bookmark. If it is, it takes the first bookmark's name, looks at every field in the
document to see if the bookmark name is part of the field. If it can't find a
match, you get the message.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply in
the newsgroup and not by e-mail :-)