Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
Is it possible to set Server Bookmark ID's to always have the same value - or does that only work on Document Bookmarks ?
I'm using the following macro code to remove and re-create a Bookmark with a set Name and ID -
Sub exportBM
'Create Bookmark Name from variable
Set User=ActiveDocument.Variables("vBookMarkName")
'Create Bookmark Nbr from variable
Set Nbr=ActiveDocument.Variables("vBookMarkNbr")
Username = User.GetContent.String
UserNbr = Nbr.GetContent.String
'Get rid of any previous Bookmark of the same name
ActiveDocument.RemoveDocBookmark Username
'Save latest Bookmark with input field values
ActiveDocument.CreateDocBookmark true, Username, UserNbr, 0, , , , , , true
End Sub
Working offline, a document Bookmark will be created Ok with Name and ID that match the variables e.g. "Bob's Bookmark" "ABC1", same result every time.
Working on the server, a server Bookmark is created Ok but only the Name stays the same - the ID increments on every run of the macro - e.g. BM01..BM02...BM03.
After a bit of testing, I notice I'm up to BM103.
Is this how it should work or have I missed some config setting somewhere ? Is there a limit to the ID number ?,
Regards,
HD
Hi,
Did you find any solution to how you can define the server bookmark's ID in your macro?
BR,
-Christian
Hi,
No. Since there seems to be no limit to the number of bookmarks it wasn't a problem in this case,
Regards,
HD