Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2005

Tip: Looking for answers? Try searching our database.

Change Story, Switch Between Stories

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andrew - 25 Mar 2005 02:27 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.