how display bookmark names within template

L

Lee

Hello

I need to check the location of some, er, location bookmarks in my template.
I went to Tools>Options>View and ticked the "bookmark" box. This gives me an
I-beam for each bookmark however there is no way of telling them apart.

I need to check the name of each bookmark. Is there a way of temporarily
displaying the name of each bookmark in the document?

I am using Word2003 on XP SP1.

Thank you

Lee
 
J

Jay Freedman

Hi Lee,

The following macro will display the name of a bookmark that encloses
the current selection:

Public Sub BookmarkName()
If Selection.Bookmarks.Count < 1 Then Exit Sub
MsgBox Selection.Bookmarks(1).Name, , "Current Bookmark"
End Sub

This works well if you put an item on the right-click shortcut menus
to run it, since right-clicking first moves the selection to that
point. The macro could be enhanced to include the names of all
bookmarks that enclose the selection, if there are more than one.
 
L

Lee

Jay Freedman said:
Hi Lee,

The following macro will display the name of a bookmark that encloses
the current selection:

Jay

Many thanks for the help. I am going to use your suggestion.

Does it not seem odd that one can enter named bookmarks within a document
but not easily review their names or locations after the event. You would
think it would be possible to toggle the display in the same way as Alt-F9
toggles field codes....

L
 
C

Chad DeMeyer

If you put your cursor in a bookmarked range and go to Insert>Bookmark, the
bookmark encompassing that range is preselected in the dialog. Of course,
that is of limited use when confronted with overlapping bookmarks.

Regards,
Chad
 

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