Protect a bookmark

  • Thread starter John... Visio MVP
  • Start date
J

John... Visio MVP

I am looking for a method to make a bookmark safe from user interaction.

Currently I have a bookmark saying <End of Notes>. It's purpose is to
seperate the first half of the document from the second half that contains
generated tables. Unfortunatley, the user has has "accidently" deleted the
book mark.

Of course, I am open to other suggestions for marking a point in the
document that is immune to user interaction.

John... Visio MVP
 
C

Cindy M.

Hi John,
I am looking for a method to make a bookmark safe from user interaction.

Currently I have a bookmark saying <End of Notes>. It's purpose is to
seperate the first half of the document from the second half that contains
generated tables. Unfortunatley, the user has has "accidently" deleted the
book mark.

Of course, I am open to other suggestions for marking a point in the
document that is immune to user interaction.
Mmmm. Only way to protect a bookmark is to protect the document in some way.
For example there's Forms protection, "Read only" protection and, new in 2007
(as I recall, that's the version you're using) you can use Content Controls.
The advantage of the latter over the former is that it doesn't lock down
things like working with graphics.

So, for example, you could insert a RichText type of content control for the
"first half" of the document. You can set a property that will prevent the
user from deleting the content control.

To programmatically access the other half of the document you could do
something like this:
Dim rng as Word.Range
Set rng = oDoc.contentControls(1).Range
rng.Collapse wdCollapseEnd

At this point, you would be at the end of, or just after the content control
(you'll need to do some testing and tweaking - this is just to give you and
idea).

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
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