Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Bookmarks

Hi

When I select a bookmark I want to include the name of this bookmark in the caption of the chart.

Is this possible?

Thanks

T

2 Replies
datanibbler
Champion
Champion

Hi Roderick,

I know of no way to capture the name of a bookmark, it does not appear in a status_box either - but you know which selections are made by it, so you can just query those using GETFIELDSELECTIONS() - and when the selections belonging to any of your bookmarks are all present, you just return the name in the caption.

HTH

Best regards,

DataNibbler

tresesco
MVP
MVP

You can try macro:  ActiveDocument.GetDocBookmarkNames  , like:

bookmarks = ActiveDocument.GetDocBookmarkNames

     for i = 0 to UBound(bookmarks)

         bm = bookmarks(i)

         msgbox(bm)

     next