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 / December 2004

Tip: Looking for answers? Try searching our database.

Range Object positioning trouble

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lexa - 06 Dec 2004 08:37 GMT
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
 
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.