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.
Jezebel - 25 Mar 2005 03:35 GMT
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) ....
> 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
[quoted text clipped - 22 lines]
>
> Thanks.
Andrew - 25 Mar 2005 04:55 GMT
Thanks. I was hoping for a range solution.
> Forget using the Selection object. Work with Range objects instead --
>
[quoted text clipped - 31 lines]
> >
> > Thanks.