Please Note: This article is written for users of the following Microsoft Word versions: 97, 2000, 2002, and 2003. If you are using a later version (Word 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Word, click here: Protecting Bookmarks.

Protecting Bookmarks

Written by Allen Wyatt (last updated February 3, 2022)
This tip applies to Word 97, 2000, 2002, and 2003


1

Jay asked if there was a way to protect a bookmark so it could not be deleted. There is no way to do this in Word; there is no way to set a bookmark as "hidden" or to lock it in place. You might think that you can mark a bookmark as hidden because when you display the Bookmark dialog box (Insert | Bookmark) (See Figure 1.) there is a check box named "Hidden Bookmarks." Word, in the normal course of using other tools, creates bookmarks that are normally hidden from view. For instance, Word uses hidden bookmarks for table of contents entries, cross-references, and captions. You cannot mark any of the bookmarks you create as "hidden," however.

Figure 1. The Bookmark dialog box.

Bookmarks, hidden or not, can be deleted very easily. All a user needs to do is select the text that contains the bookmark and then delete that text. If the bookmark is one that you have created, the user can use Insert | Bookmark to find and delete the bookmark on purpose.

One way you can stop a bookmark from being deleted is to protect a document for forms. This type of protection allows you to specify specific sections in your document that are to be protected. If you put a continuous section break before the text containing the bookmark you want protected and a continuous section break afterwards, you can protect just the section that contains the bookmark. (How to protect individual sections in a document has been discussed in other issues of WordTips.)

Once you've applied the document protection, a user can no longer select Insert | Bookmark to view what the different bookmarks are. This goes for any bookmarks in the document; the user won't be able to view the bookmarks in unprotected sections, either. The user can still select text in the unprotected sections of the document and delete that text, so it is possible to delete a bookmark in this way, but the same editing cannot take place in the protected section—so the bookmark there remains safe.

If you prefer to not divide your document into sections, another possible approach is to create a macro that protects the bookmarks. All you need to do is create a macro that is run every time the user makes a change to the document. The macro could check to make sure that your mandatory bookmark is still present. If it isn't, then the macro can undo the edit that triggered the macro in the first place.

Of course, such a macro will add a good deal of "overhead" to working with the document; running it after every character is added to a document or every character is deleted can be time consuming. There is no way around such an approach, however, since any document change can potentially affect your bookmark.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (280) applies to Microsoft Word 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Word (Word 2007 and later) here: Protecting Bookmarks.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Setting Gap Spacing in the Equation Editor

The Equation Editor is a great tool that allows you to add equations to your document. You have quite a bit of control ...

Discover More

Clearing the Undo Stack in a Macro

Excel keeps track of the actions you take so that you can undo those actions if any are taken in error. You may want to ...

Discover More

Increasing Space between Numbers and Text in a List

You can easily create numbered lists in your document. Most versions of Word even allow you to modify the distance ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More WordTips (menu)

Understanding and Using Bookmarks

Bookmarks are a great feature you can use to mark the location of text or to mark a position within a document. They can ...

Discover More

Deleting a Bookmark

Create a bookmark and you may, at some future point, need to delete that bookmark. It's easy to do, as described in this tip.

Discover More

Reusing a Bookmark

Bookmarks in Word are just like bookmarks used in paper books, any given bookmark may be reused to mark a new location. ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is four less than 7?

2022-08-19 21:47:19

James Saunders

You can use a rich text content control to prevent the user from deleting bookmark. Create the rich text control and select the content control and now insert bookmark. Next change the properties of the content control to can not delete. Now the bookmark can't be deleted.


This Site

Got a version of Word that uses the menu interface (Word 97, Word 2000, Word 2002, or Word 2003)? This site is for you! If you use a later version of Word, visit our WordTips site focusing on the ribbon interface.

Videos
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.