editing bookmarked text

J

Johannes Stuermer

I wonder how difficult it is to solve the following dilemma:

I have a protected document with several editable text sections. Each of
these text sections is also bookmarked. When I add text inside a bookmarked
area, the bookmark expands together with the area that is hightlighted as
editable, which is what I want. However, if I put the cursor at the end of a
bookmark and then add text, only the hightlighted, editable area expands, but
NOT the bookmark itself. This is a problem because what I'm interested in is
the text inside the bookmark.

How can I get around this behavior? I've tried various ways of adjusting the
start/end value of the bookmarked range to keep it in sync with the editable
area, but since there is no document event that fires when text changes, I
can make the adjustment only when there is a selection change, which is just
not good enough. Any ideas?

Thank You,
Johannes Stuermer
 
W

Word Heretic

G'day "Johannes Stuermer"

One way is to set the terminating point of the bookmark past the end
of cell mark. From vba, you set it using ...Cells(n).Range without
moving back the two characters for para and end of cell marks.

Steve Hudson - Word Heretic

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


Johannes Stuermer 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