Hi Tommy,
Quote:
> Is there a easy way to tell which two bookmarks is around the actual
> position of the cursor and / or which bookmark is the nearest over the
> actual cursor position.
Can't think of any easy way, no. But...
You can get the bookmarks in the order they appear in the document by
using the .Bookmarks property of the RANGE (rather than Document)
object. Then you can get the .Start or .End value for the bookmark range
and compare it to that of the current selection.
This may not be fool-proof, however, given some of the odd behavior of
ranges when there's hidden stuff, fields, etc. in a document. Might be
good enough for your purposes.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister
http://www.mvps.org/word
http://go.compuserve.com/MSOfficeForum
This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :-)