Hi Lina,
Any suggestion where to begin?
I have already built a crossreferencefunction where I shows some specific
bookmarks (every bookmark that incudes the word special) in a list and then
uses
Selection.InsertCrossreference _
WdReferenceType.wdRefTypeBookmark, _
WdReferenceKind.wdContentText, _
lstItems.Value, True
Can I do something like that? But how can I show a list with all text that
has the wanted style, and how can I make a reference to that place? I feel
like I'm fumbling in the dark here...
Not surprising, as it's a complex thing to do
you can use Word's FIND feature to locate each instance of the style in
question. I'd probably create a class and expose a member (property) for a
RANGE object. Assign each range you find to such a Range object and store it
in a collection. (Alternately, you could probably use a UDT (user-defined
type) and an array.)
You can then use this collection (or array) to generate the list (Range.Text
property), and later to reference the entry the user selects in order to
assign it a bookmark, which you can then cross-reference.
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