Qlik Community

QlikView Layout & Visualizations

Discussion Board for collaboration on QlikView Layout & Visualizations.

Not applicable

Calling Subs and functions

Hi All,

How do I call the functions and Subs written in another qvw file. 

Thanks and Regards

5 Replies
jsn
Honored Contributor

Calling Subs and functions

You can't. Unless you create a macro to launch a new instance of QV and load that document, and run those macros etc. which sounds pretty pointless.

Easiest way would be to copy across any macro you want to use.

Maybe if you explain what you actually want to achieve, someone can suggest a good approach.

Not applicable

Calling Subs and functions

Hi Johannes,

Thanks for your instant reply. I want to reuse the code written in some qvw file instead of copy the code. For this purpose Binary cannot be used?

jsn
Honored Contributor

Calling Subs and functions

Yes, I understand, but for what use? Why would it make sense to call another document instead of copying the function/sub over? Maybe there's a good reason that I'm not seeing

Not applicable

Calling Subs and functions

I have designed a template that will be shared across the customers. If I need to modify anything I can only modify the source qvw and ship the same to all the customers.

jsn
Honored Contributor

Calling Subs and functions

Ok, and what type of macro are you trying to run? (Also, you should still be able to put the macro in the template that you distribute?)

Community Browser