Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
francisvandergr
Partner - Creator II
Partner - Creator II

Making a bookmark by a button

I have made a button. I want the button to do the following thing :

1. Remove an old Document Bookmark

2. Create an new Bookmark from the current selections.

in my chart i wil refer to the Bookmark.

When creating a macro i have a type mismatch on line 3. Anybody know what can be the problem ?

sub AddToCompareBookmark
ActiveDocument.RemoveDocBookmark "ToCompare"
ActiveDocument.GetApplication.WaitForIdle
ActiveDocument.CreateDocBookmark "ToCompare"
end sub

3 Replies
IAMDV
Master II
Master II

Try this...

Sub AddToCompareBookmark

     ActiveDocument.RemoveDocBookmark "ToCompare"

     ActiveDocument.GetApplication.WaitForIdle

     ActiveDocument.CreateDocBookmark False, "ToCompare"

End Sub

Cheers - DV

francisvandergr
Partner - Creator II
Partner - Creator II
Author

Sorry this is not the answer.

danielrozental
Master II
Master II

Check the case on the bookmark name.