Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
sorry to need your help again:
I found the code in the community listing all available bookmarks:
function bookMarkNames
bookmarks = ActiveDocument.GetDocBookmarkNames
for i = 0 to UBound(bookmarks)
bm = bookmarks(i)
msgbox(bm)
next
end function
I want to write the list of bookmarks in the possible value list of an input field. So actually I have two questions:
- How can I add the values returned above to the list of possible values in an input field?
- How do I get the bookmark ID (like BM01) when I know the name of it? (I imagine something like "ActiveDocument.GetBookmarkIDbyName(id)" or something like that...)
Thank you so much in advance,
Martin
Thanks Martin,
I have researched to the max. There seems no other way. I am keen to know if there is any other way.
If you come across something, please do post here.
regards,
Rajesh Vaswani