Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
Not applicable

Qlikview Desktop 11.2 - Ordering Sub Execution

Hello People,

I have two Subs in my "Edit Module":

Sub Reaload

ActiveDocument.Reload 0,1

End Sub

Sub Run_VBS

Set WshShell = CreateObject("WScript.Shell")

ActiveDocument.WshShell.Run chr(34) & "C:\TESTE.bat" & Chr(34), 0

Set WshShell = Nothing
End Sub

Both sub work fine however I want a specific rule in execution progress:

  • I've to guarantee that the Sub Run_VBS runs before that Sub Reload because the Sub Reaload depends on the success of the Sub Run_VBS.

I know that I've the ActiveDocument in firtst Sub but I've it to build the automation of the script.

How to achieve this?

Thank you very much!

Tags (2)
1 Reply

Re: Qlikview Desktop 11.2 - Ordering Sub Execution

Sub Reaload

ActiveDocument.Reload 0,1

End Sub

Sub Run_VBS

Set WshShell = CreateObject("WScript.Shell")

ActiveDocument.WshShell.Run chr(34) & "C:\TESTE.bat" & Chr(34), 0

Set WshShell = Nothing
End Sub


Sub RunThisOneInstead

    Reaload()

    Run_VBS()

End Sub


talk is cheap, supply exceeds demand
Community Browser