Locking Bookmarks in Word 2003

G

Girija

Hi Everybody,
Is there any way where I can lock the bookmarks in Word template without
protecting the whole document. Even if the user selects the containing text
and deletes, the bookmark should be there.

So please let me know if there is any way by which I can prevent the
deletion of bookmarks along with allowing the user to change its containing
text.

Regards,
Girija
 
G

Girija

Hi Graham,
Thanks a lot for the info. Its quite helpful.

Still one query,if user selects any text containing bookmark from the
document itself rather than code, how do I can capture each selection event
in the document and get the bookmark name from the selected text.

My problem is like this: I have one document which has some bookmarks
containing some text. The user can change the text and I have again to
capture the changed text. But once user selects the text and changes, the
bookmark also gets removed and no way I can capture the changed text in code.

Regards,
Girija
 
M

macropod

Hi Girija,

There's no way to capture the fact that a bookmarked range has been selected. However, provided the user only selects an area within
the bookmark's boundaries and limits their typing to that area, the bookmark won't be deleted.

The safest way to reatin your bookmarks, though, is by protecting the document for forms. In that scenario, you'd set the document
up so that the area where the user was permitted to make a change was a formfield that sets the bookmark's name - with a default
result/string. If the pirpose of the bookmark is to cause the data to be repeated elsewhere in the document, see:
http://gregmaxey.mvps.org/Repeating_Data.htm
 

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