view bookmark name

D

Doug Robbins

If you select the bookmark and the use Insert>Bookmark, the selected
bookmark will the one highlighted in the list.

--
Please respond to the Newsgroup for the benefit of others who may be
interested. Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP
 
J

Jay Freedman

For something a little easier to use, put this macro in a global
template, and put a menu item for it on the various right-click menus.
Then you can right-click anywhere in the document, choose the item,
and get a message box showing the name if any.

Sub WhatBookmark()
Dim bk As Bookmark
For Each bk In ActiveDocument.Bookmarks
If Selection.InRange(bk.Range) Then
MsgBox bk.Name, vbOKOnly, "What Bookmark"
Exit Sub
End If
Next bk
MsgBox "Not in a bookmark", vbOKOnly, "What Bookmark"
End Sub

See http://www.gmayor.com/installing_macro.htm and
http://www.word.mvps.org/FAQs/Customization/AsgnCmdOrMacroToToolbar.htm
for the necessary procedures.
 

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