Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calling a Sub defined in load script, from inside a macro.

Hallo,

I need to call a Sub (defined inside the load script) from inside a vbscript macro launched by pressing a button... Is that possible?

Thank you

4 Replies
deepakk
Partner - Specialist III
Partner - Specialist III

hi,

try ActiveDocument.Reload

in macro. this will reload the file and hence will execute the codes inside script.
Not applicable
Author

Thank you so much...

Not applicable
Author

I have same problem but i have different sub inside the script , how can i call the different sub separately ?for example i have 2 button B1 , B2 i want to run sub 1 by pressing B1 and sub 2 by pressing B2 and in each time pressing i want just call and execute one of the sub . thanks

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Make the first button action to be set a variable value. Then test the variable in an IF statement in the script to select script block(s) for execution.

-Rob