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
Word Heretic - 09 Dec 2004 11:11 GMT
G'day "lexa" <lexa78@inbox.ru>,
what does the bookmark point to?
Steve Hudson - Word Heretic
steve from wordheretic.com (Email replies require payment)
Without prejudice
lexa reckoned:
>Hi everybody!
>
[quoted text clipped - 16 lines]
>
>Thanks, Alex