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
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.
--
Regards,
Jay Freedman http://aspnet2.com/mvp.ashx?JayFreedman
Microsoft Word MVP FAQ: http://word.mvps.org
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
Regards,
Chad
"Lee" <m...@privacy.net> wrote in message news:2p5ncjF...@uni-berlin.de...