L
Larry
I have a macro that lets a user find the next bookmark. The macro
selects the range of the bookmark, so that the next time the 'next
bookmark' button is pushed, the search starts from the position of the
previous bookmark.
But this technique fails if the next bookmark is in a different story
range. I feel as though I should be able to use .nextstoryrange to
shift focus to the next story range when I've run out of bookmarks in
the current one. But the examples about .nextstoryrange (that I'm able
to find) all assume that I want to run through all the story ranges in
one go. I don't want to do that; I just need to switch to another
story range if I throw an error when trying to select a bookmark
that's not in the current story range.
Can anyone help me out on this one? Thanks
---larry
selects the range of the bookmark, so that the next time the 'next
bookmark' button is pushed, the search starts from the position of the
previous bookmark.
But this technique fails if the next bookmark is in a different story
range. I feel as though I should be able to use .nextstoryrange to
shift focus to the next story range when I've run out of bookmarks in
the current one. But the examples about .nextstoryrange (that I'm able
to find) all assume that I want to run through all the story ranges in
one go. I don't want to do that; I just need to switch to another
story range if I throw an error when trying to select a bookmark
that's not in the current story range.
Can anyone help me out on this one? Thanks
---larry