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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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!