Change Story, Switch Between Stories

A

Andrew

How (there must be a way) can I deliberately switch between the main story
and the footnotes story. I am creating an index using a Table of
Authorities. The lawyer does not want the page numbers, but rather the
paragraph outline levels. It seems odd, but there you are. I (1) search for
"TA \", (2) insert a bookmark, (3)switch to the TOA, and (4) insert a cross
reference to that bookmark. This is fine in the main story.

Weary of trying to search both stories with one macro, I restart the macro
from the footnote story to find the citations (TA \ fields) in the footnotes.
Now, when I move to the TOA, I can't get back to the footnotes story to
continue searching through the footnotes. I've been using:

Selection.GoTo What:=wdGoToBookmark, Name:=sBmName

But this is not possible from the main story to the footnotes story. Now
the really offensive work around:

Selection.GoTo What:=wdGoToFootnote, Which:=wdGoToFirst

And then I switch views to the footnote view, THEN find my bookmark and
continue searching.

Thanks.
 
J

Jezebel

Forget using the Selection object. Work with Range objects instead --

Dim pSource as Word.Range

Set pSource = ActiveDocument.StoryRanges(wdFootnotesStory)

pSource.Find ....
pSource.Bookmarks(sBmName) ....
 
A

Andrew

Thanks. I was hoping for a range solution.

Jezebel said:
Forget using the Selection object. Work with Range objects instead --

Dim pSource as Word.Range

Set pSource = ActiveDocument.StoryRanges(wdFootnotesStory)

pSource.Find ....
pSource.Bookmarks(sBmName) ....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top