Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
ali_hijazi
Partner - Master II
Partner - Master II

pass parameters to a sub in the macro editor

Hello

I got a macro that prints a bar chart with x-axis scroll bars

I want to pass the ID of the chart as parameter since the same macro can be used to print several charts with x-axis scroll bars

Please advise

I can walk on water when it freezes
1 Reply
giakoum
Partner - Master II
Partner - Master II

I guess that you use a button for each object you want to export. So define the ID as a variable using an action and then run the macro and read the variable with the following command :

set vID = ActiveDocument.Variables("ID")

Hope this helps!