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: 
johngouws
Partner - Specialist
Partner - Specialist

Call file from macro editor

Good morning.

Currently I have a script which distributes PDF's to various persons. Sample below. All this works perfectly, but I would like to have the script moved outside of the VB Script editor. The reason for this is that it will make maintenance a bit easier.

I would imagine I need to have a new SUB which calls the txt or vbs file from C:\Qlik\Distribution\Weekly.vbs. Unfortunately I cannot get this to work. Please could you give me any pointers on this.

Thank you - much appreciated.

Sample.JPG

1 Solution

Accepted Solutions
petter
Partner - Champion III
Partner - Champion III

I couldn't help myself - had to check if the old code (from rwunderlich still worked in the latest QlikView version which is QlikView November 2017 SR5 (12.20) and it did

2018-06-06 07_55_39-Edit Module.png

View solution in original post

3 Replies
petter
Partner - Champion III
Partner - Champion III

There is actually a nine year old thread that tells you how to do it:

Include external module/macro code

Look at the answer and code that Rob Wunderlich rwunderlich has provided.

petter
Partner - Champion III
Partner - Champion III

I couldn't help myself - had to check if the old code (from rwunderlich still worked in the latest QlikView version which is QlikView November 2017 SR5 (12.20) and it did

2018-06-06 07_55_39-Edit Module.png

johngouws
Partner - Specialist
Partner - Specialist
Author

Hello Petter.

Thank you very much for this solution. This is going to solve the problem for me. I thought someone would have wanted this solution at some stage. Thanks to rwunderlich‌ for publishing it.