I am trying to add bookmarks dynamically in VBA to a pdf file. Here is the relevant code:
For Each element In OfficeArray
AVYourDoc.FindText element, True, True, True
AcroApp.MenuItemExecute ("NewBookmark")
PDBookmarker.GetByTitle PDYourDoc, "Untitled"...