Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Multiple actions within a Button

Hi,

I am doing the following actions within the button:

1. Setting a variable to 1

2. Calling a Macro to export a chart in Excel

3. Setting the variable back to 0

Now, the challenge is they don't happen sequentially as I desire.  Looks like I can only have one Macro inside a button because I tried one more macro to call a hidden button to do the third action and it did not work.  Please suggest how I can control the order of execution of actions within the button.

Thanks,

Sudha.

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

try this

set v=ActiveDocument.Variables("yourvariable")

v.SetContent "0",true

View solution in original post

4 Replies
Anonymous
Not applicable
Author

why don't you enhance the macro and set the variable back to 0?

Not applicable
Author

Hi,

Yes I thought about it.  I am new to Macros.  Please help me how I can integrate,

set vShowColumn=0

after the completion of this macrosub ExportExcel

set obj = ActiveDocument.GetSheetObject("CH02")

obj.ExportBiff "C:\Temp\GL.xls"

end sub

Thanks,

Sudha.

Anonymous
Not applicable
Author

try this

set v=ActiveDocument.Variables("yourvariable")

v.SetContent "0",true

Not applicable
Author

Thank you so much!! It worked