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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
pavanthota
Creator
Creator

Macro for Saving Active selections in Bookmark object

Hi,

I have to create a macro which creates bookmark object saving the selections made in the QlikView document.

Can anyone help me on this macro

Thanks,

Pavan

1 Solution

Accepted Solutions
Not applicable

Hi Pavan,

See if this below code helps you

SUB GetSelectedValues


ActiveDocument.RemoveUserBookmark "savecurrentselection"
ActiveDocument.CreateUserBookmark "savecurrentselection"
ActiveDocument.ClearAll
       

END SUB

SUB RecallSelectedValues


ActiveDocument.RecallUserBookmark "savecurrentselection"
ActiveDocument.RemoveUserBookmark "savecurrentselection"

END SUB

Thanks,

Sarathi

View solution in original post

3 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Sub AddBookMark

ActiveDocument.CreateDocBookmark false, "MyBookmark"

End Sub


talk is cheap, supply exceeds demand
pavanthota
Creator
Creator
Author

Hi Wassenaar,

Thanks for your reply

Not only creation of book mark whatever the selections exist in QlikView document, those selection i want to save it in Bookmark through macro

Regards,

Pavan

Not applicable

Hi Pavan,

See if this below code helps you

SUB GetSelectedValues


ActiveDocument.RemoveUserBookmark "savecurrentselection"
ActiveDocument.CreateUserBookmark "savecurrentselection"
ActiveDocument.ClearAll
       

END SUB

SUB RecallSelectedValues


ActiveDocument.RecallUserBookmark "savecurrentselection"
ActiveDocument.RemoveUserBookmark "savecurrentselection"

END SUB

Thanks,

Sarathi