How to Create Hidden BookmarksLast reviewed: February 5, 1998Article ID: Q152770 |
The information in this article applies to:
SUMMARYThis article describes how to create bookmarks that cannot be accessed from the Bookmark dialog box (Edit menu). Bookmarks that begin with the underscore character are hidden. In other words, they will not appear in the Bookmark dialog box nor will they appear in your document when you select Bookmarks on the View tab.(To locate this option, click options on the Tools menu, and then select the View tab.) These bookmarks cannot be created or deleted manually. Instead, you can create, go to, and delete them using a WordBasic macro.
MORE INFORMATIONWARNING: ANY USE BY YOU OF THE OR MACRO CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this macro code "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. To create a hidden bookmark, use the following macro:
Sub MAIN EditBookmark .Name = "_HiddenBkMk1", .Add End SubIf you have text selected in a document and run this macro, a bookmark will be set at that position. To get back to that bookmark, create the following macro:
EditBookmark .Name = "_HiddenBkMk1", .GotoTo delete a hidden bookmark, create the following macro:
Sub MAIN EditBookmark .Name = "_HiddenBkMk1", .Delete End SubThese bookmarks have the same characteristics as any other bookmarks. They can be added, changed, and deleted. The only difference is that they are hidden from the user's sight.
|
KBCategory: kbusage kbmacro kbhowto
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |