Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how display bookmark names within template

2,832 views
Skip to first unread message

Lee

unread,
Aug 25, 2004, 5:34:37 PM8/25/04
to
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


Jay Freedman

unread,
Aug 25, 2004, 11:34:26 PM8/25/04
to
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.

--
Regards,
Jay Freedman http://aspnet2.com/mvp.ashx?JayFreedman
Microsoft Word MVP FAQ: http://word.mvps.org

Lee

unread,
Aug 26, 2004, 5:04:23 AM8/26/04
to

"Jay Freedman" <jay.fr...@verizon.net> wrote in message
news:q4mqi0pkh2estduen...@4ax.com...

> 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


Chad DeMeyer

unread,
Aug 26, 2004, 2:14:44 PM8/26/04
to
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


"Lee" <m...@privacy.net> wrote in message news:2p5ncjF...@uni-berlin.de...

0 new messages