Protecting bookmarks?

K

KR

Working in Word97 on Win 98SE...

I just started playing with a (long) document that someone else created; it
has a multitude of tables and a few other areas where I need to be able to
insert text via VBA code (while still allowing myself or other users to
manually edit the document as well). I'm fairly new to Word VBA but know
Excel VBA, so that isn't a problem- the problem is that I need to
idiot-proof this, and while I can add text at my bookmarks (sort of, it
still isn't quite right) I've tested, and it is easy to accidently delete
the bookmark manually. Is there any way to set up bookmarks and allow users
to do anything they want in the text of the document, but prevent the actual
bookmarks themselves from being deleted?

For example, in a cell I may want 5 bookmarks to identify 5 different pieces
of text I might have to add (separated by already existing text in that
cell). When I highlight a row of "new" text to delete it, sometimes the
bookmark goes away too. I looked at the FAQ and also through the various
tools/options and protection schema in Word97 and didn't find a way to
protect the bookmark (without protecting the whole document).

Any ideas or suggestions?

Thanks in advance,
Keith
 
C

Cindy M -WordMVP-

Hi Kr,
and while I can add text at my bookmarks (sort of, it
still isn't quite right) I've tested, and it is easy to accidently delete
the bookmark manually. Is there any way to set up bookmarks and allow users
to do anything they want in the text of the document, but prevent the actual
bookmarks themselves from being deleted?
No, there's not.

Somewhat less prone to accidental deletion are docVariable or DocProperty
fields. The text is written to a document variable or document property (the
former is VBA-access only; the latter is File/Properties), then display that
text using such a field. If someone deletes a field, at least the data is
still present, and the field can be inserted again.

The only way to "protect" anything in Word97 is to apply Forms protection.
Then the users can only work in form fields or unprotected sections. Problem
is, lots of things aren't available in that mode.

From the sound of it, what you'd really need is Word 2003 new protection
features...

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

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