Range Object positioning trouble

L

lexa

Hi everybody!

I've got some troubles, working with Range:

Here is a code context:
...
Call Word.ActiveDocument.Bookmarks.Add("A" & CStr(iter),
Word.ActiveDocument.Range(bmStart, bmStop))
...

bmStart and bmStop are changing from 0 to ActiveDocumet.Characters.Count,
and mark parts of the document with different formatting.
For the majority of test documents that works perfectly: I get Bookmark
from Character # bmStart (incl) to Character # bmStop (incl), but for the
moment I've got a document, for which from the very beginning of the
document it works as Range from Character # (bmStart - 1) (incl) to
Character # (bmStop - 1) (incl). Any specific features about this very
document I've not found. Why could it be?

Thanks, Alex
 
W

Word Heretic

G'day "lexa" <[email protected]>,

what does the bookmark point to?


Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


lexa reckoned:
 

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