<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Debugging QlikView VBScript in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410148#M701213</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Benny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry for the delay...&lt;/P&gt;&lt;P&gt;Did you add the QlikView modules as references in your VBA project?&lt;BR /&gt;With the IE plugin installed they should be simply selectable in Excel...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need the following modules: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikOCX ActiveX Control module&lt;/P&gt;&lt;P&gt;QlikView 11.0 Type Library&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 May 2013 07:27:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-21T07:27:16Z</dc:date>
    <item>
      <title>Debugging QlikView VBScript</title>
      <link>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410133#M701198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; As it can be seen in the other posts concerning this topic,&lt;/P&gt;&lt;P&gt;since QlikView Version 10.0 there is no longer any debugging functionality for VBScript in Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it seems that QlikTech is not willing to integrate debugging tools in the near future&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without a debugger writing VBScript Code can be very hard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore I tried another approach: Why not use the integrated debugger in Microsoft Excel?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be able to debug via Excel I took the following steps:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I installed the QlikView Plugin (which is also needed for the enhanced WebView of QlikView in the IE)&lt;/LI&gt;&lt;LI&gt;I created a new empty Excel document and copied all the VBScript Code that I want to debug from QV into an Excel VBA module&lt;/LI&gt;&lt;LI&gt;In order to communicate with QlikView I added the following references to the VBA project (they should be simply selectable when the plugin is installed):&lt;UL&gt;&lt;LI&gt;QlikOCX ActiveX Control module&lt;/LI&gt;&lt;LI&gt;QlikView 11.0 Type Library&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt; Due to small incompatibilities between QV and Excel VBA some minor code adaption have to be made&lt;UL&gt;&lt;LI&gt;Global variables may not be initialised outside a Sub or Function in Excel. Therefore I have to change my script to only declarare global variables, and to move all Initialisation to a newly created Sub init(), which I have to call before I start the actual debugging&lt;/LI&gt;&lt;LI&gt;If I want to call a Sub or Function in QV I only need to write "function_abc(var1)". In Excel VBA I need to change that to "CALL function_abc(var1)"&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt; I created a new Sub Debug() that I use to debug the QV code:&lt;UL&gt;&lt;LI&gt;Call Init()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Initialise global variables&lt;/LI&gt;&lt;LI&gt;Set qvApp = New QlikView.Application&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'gives you access to QV. If you have more than 1 QV instances opened, the last opened is returned&lt;/LI&gt;&lt;LI&gt;Set qvDoc = qvApp.ActiveDocument&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'gives you access to the QV ActiveDocument. In your QV script you have to replace every usage of "ActiveDocument" by the variable qvDoc, which references the active document!&lt;/LI&gt;&lt;LI&gt;Call qv_function_you_want_to_debug&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;At last I created a button in Excel and linked its click event to the Debug() procedure&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After all this steps the Excel debugger can be used and everything works quite well. The need to adapt the code is a little drawback, but If you try to design your initial QV code according to the Excel incompatibilities, then this is no big deal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Has anybody else experiences with a debugging solution?&amp;nbsp; Do you think the solution described is useful or do you have any suggestions or enhancements?&lt;/P&gt;&lt;P&gt;I'm looking forward to any comments &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Chris &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2012 09:03:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410133#M701198</guid>
      <dc:creator />
      <dc:date>2012-11-07T09:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging QlikView VBScript</title>
      <link>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410134#M701199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Great idea Chris. I always struggled debugging VB Script. I generally do that with the MsgBox approach! I understand it's not ideal but something is better than nothing. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;What do you mean by - "I installed the QlikView Plugin (which is also needed for the enhanced WebView of QlikView in the IE)"? In your first point...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;DV&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;A href="http://www.QlikShare.com"&gt;www.QlikShare.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 16:25:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410134#M701199</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-11-08T16:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging QlikView VBScript</title>
      <link>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410135#M701200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a QlikView plugin used for the native look of QlikView Apps in the IE.&lt;/P&gt;&lt;P&gt;This plugin also contains the *.ocx files needed for the Excel integration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the plugin is a part of the QlikView desktop client installation it should be already installed and you can skip that step &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 07:27:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410135#M701200</guid>
      <dc:creator />
      <dc:date>2012-11-09T07:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging QlikView VBScript</title>
      <link>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410136#M701201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Okay cool. So you are referring to the IE plug-in right?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;DV&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;A href="http://www.QlikShare.com"&gt;www.QlikShare.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 09:00:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410136#M701201</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-11-09T09:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging QlikView VBScript</title>
      <link>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410137#M701202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Yep right, it's the IE plugin...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 08:15:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410137#M701202</guid>
      <dc:creator />
      <dc:date>2012-11-12T08:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging QlikView VBScript</title>
      <link>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410138#M701203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;I have been trying to setup your great suggestion and have got everthing going except for the &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Call qv_function_you_want_to_debug &lt;/LI&gt;&lt;LI&gt;do you have some sample code or even better &lt;/LI&gt;&lt;LI&gt;a sample of excel script I could look at﻿ and workout the syntax used here.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks regards Peter﻿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 03:30:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410138#M701203</guid>
      <dc:creator>Peter_Brunner</dc:creator>
      <dc:date>2012-12-20T03:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging QlikView VBScript</title>
      <link>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410139#M701204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sub Init()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '***Init Global Variables (e.g. newline or tab character)&lt;/P&gt;&lt;P&gt;&amp;nbsp; vNl = Chr(13) &amp;amp; Chr(10)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vTab = Chr(9)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '***If Code will be executed in Excel debugger, ActiveDocument is empty&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If ActiveDocument = Empty Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '***First a new QlikView App needs to be created, to be able to access the ActiveDocument and to be able to store a reference in variable doc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set qvApp = New QlikView.Application&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set doc = qvApp.ActiveDocument&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '***If the code is run directly inside the QlikView client (and not inside Excel)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '***ActiveDocument can be accessed directly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set doc = ActiveDocument&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub qv_function_you_want_to_debug()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '***Call Init Sub to initialize ActiveDocument and all global variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Init&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; MsgBox doc.Name&lt;/P&gt;&lt;P&gt;&amp;nbsp; '*** Put your code that you want to debug here &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this code example helps... If you have further questions, do not hesitate to ask me.&lt;/P&gt;&lt;P&gt;If you tell me what you want to do and send me you code, I can further assist you...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 10:53:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410139#M701204</guid>
      <dc:creator />
      <dc:date>2012-12-20T10:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging QlikView VBScript</title>
      <link>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410140#M701205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris &lt;/P&gt;&lt;P&gt;thanks for this I will have a look and let you know&lt;/P&gt;&lt;P&gt;have a good Xmas&lt;/P&gt;&lt;P&gt;regards Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 23:32:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410140#M701205</guid>
      <dc:creator>Peter_Brunner</dc:creator>
      <dc:date>2012-12-20T23:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging QlikView VBScript</title>
      <link>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410141#M701206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Would you mind posting a sample excel file with a linked QV document?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;I am struggling with the vbscript debugging and it would be much appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually got it working! Thanks a ton. This opened up alot of new possibilities for us!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Viggo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 13:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410141#M701206</guid>
      <dc:creator />
      <dc:date>2013-03-06T13:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging QlikView VBScript</title>
      <link>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410142#M701207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect&lt;BR /&gt;I'm always happy if my work is also helpful for anybody else &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 15:55:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410142#M701207</guid>
      <dc:creator />
      <dc:date>2013-03-08T15:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging QlikView VBScript</title>
      <link>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410143#M701208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the post, this is useful....&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried using Visual Studio, C# for this?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2013 21:46:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410143#M701208</guid>
      <dc:creator />
      <dc:date>2013-03-21T21:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging QlikView VBScript</title>
      <link>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410144#M701209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Don,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think you can use .NET and Visual Studio here.&lt;/P&gt;&lt;P&gt;QlikView is only capable of VBA...so you have to work with the VBA Editor/Debugger that comes with Excel or any other Microsoft Office program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2013 09:53:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410144#M701209</guid>
      <dc:creator />
      <dc:date>2013-03-28T09:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging QlikView VBScript</title>
      <link>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410145#M701210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QlikTech suggest to me:&lt;/P&gt;&lt;P&gt;Keep the QV vers 9 exe on your desktop. Use it to load your qvw and debug macro script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2013 19:14:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410145#M701210</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2013-03-28T19:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging QlikView VBScript</title>
      <link>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410146#M701211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your comments. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I previously chose the Excel option, works nicely.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Donald Schafer &lt;/P&gt;&lt;P&gt;dj . schafer @comcast.net &lt;/P&gt;&lt;P&gt;978-582-1523&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 00:54:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410146#M701211</guid>
      <dc:creator />
      <dc:date>2013-04-04T00:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging QlikView VBScript</title>
      <link>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410147#M701212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to use your sample code, it point me that "New QlikView.Application" is undefined, may I know what should I need to do/config after installing the QV 11 IE Plugin, so that I can use this debug functionality in EXCEL VBA?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Benny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 08:04:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410147#M701212</guid>
      <dc:creator />
      <dc:date>2013-05-02T08:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging QlikView VBScript</title>
      <link>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410148#M701213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Benny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry for the delay...&lt;/P&gt;&lt;P&gt;Did you add the QlikView modules as references in your VBA project?&lt;BR /&gt;With the IE plugin installed they should be simply selectable in Excel...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need the following modules: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikOCX ActiveX Control module&lt;/P&gt;&lt;P&gt;QlikView 11.0 Type Library&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 07:27:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410148#M701213</guid>
      <dc:creator />
      <dc:date>2013-05-21T07:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging QlikView VBScript</title>
      <link>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410149#M701214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also if you want intellisense to Work in Excel while you are coding then every Variable you want intellisense on you need to define first&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim qvApp As QlikView.Application&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim qvDoc As QlikView.Document&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim ContainerObj As QlikView.Container&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim ContProp As QlikView.IContainerProperties&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way it props you with all the available properties and methods when coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember to comment out these DIM's because qlikview does not like these lines.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 11:16:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410149#M701214</guid>
      <dc:creator>sgrice</dc:creator>
      <dc:date>2013-09-26T11:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging QlikView VBScript</title>
      <link>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410150#M701215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steven,&lt;/P&gt;&lt;P&gt;as mentioned in one of my earlier replies, I have written an Init() procedure where I do some initialisation first.&lt;/P&gt;&lt;P&gt;In this procedure I also have to figure out if the code is executed via Excel or directly in QlikView, to initialize ActiveDocument correctly.&lt;/P&gt;&lt;P&gt;If you also add you &amp;lt;DIM&amp;gt; commands in the first part of the of the &amp;lt;IF&amp;gt;, then they are only executed, if the code is executed in Excel and you don't have to cope commenting them out, if the code is executed directly in Qlikview&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below you will find my code that I'm refering to...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this makes your life a bit easier...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Chris &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'*****If code is executed in Excel Debugger, ActiveDocument is empty&lt;/P&gt;&lt;P&gt;If ActiveDocument = Empty Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '*****A new QV App needs to be created and stored as reference in the variable &amp;lt;doc&amp;gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '*****in order to access ActiveDocument&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set qvApp = New QlikView.Application&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set doc = qvApp.ActiveDocument&lt;/P&gt;&lt;P&gt;'*****If the code is executed in QlikView&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '*****ActiveDocument can be accessed directly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set doc = ActiveDocument&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 13:08:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410150#M701215</guid>
      <dc:creator />
      <dc:date>2013-09-26T13:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging QlikView VBScript</title>
      <link>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410151#M701216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm not understanding why the value for Doc falls out of reference as soon as Init ends...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14241806304228167" jivemacro_uid="_14241806304228167"&gt;
&lt;P&gt;Sub Init()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '***Init Global Variables (e.g. newline or tab character)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; vNl = Chr(13) &amp;amp; Chr(10)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vTab = Chr(9)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '***If Code will be executed in Excel debugger, ActiveDocument is empty&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If ActiveDocument = Empty Then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '***First a new QlikView App needs to be created, to be able to access the ActiveDocument and to be able to store a reference in variable doc&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set qvApp = New QlikView.Application&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set Doc = qvApp.ActiveDocument&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '***If the code is run directly inside the QlikView client (and not inside Excel)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '***ActiveDocument can be accessed directly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set Doc = ActiveDocument&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;End Sub&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;'Sub qv_function_you_want_to_debug()&lt;/P&gt;
&lt;P&gt;Sub export_VehPen()&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '***Call Init Sub to initialize ActiveDocument and all global variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Init&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; MsgBox Doc.Name&lt;/P&gt;
&lt;P&gt;&amp;nbsp; '*** Put your code that you want to debug here &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RUNTIME ERROR 424 object required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the put "Doc" under watch in the Excel editor and noticed that the value for Doc is set to the QV app directory until the Init "End Sub" line. So when it is called by the "MsgBox Doc.Name", it is empty or rather doesn't exist.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 13:51:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410151#M701216</guid>
      <dc:creator>deec</dc:creator>
      <dc:date>2015-02-17T13:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging QlikView VBScript</title>
      <link>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410152#M701217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You defined doc inside from a sub-routine and therefore if the routine has finished doc didn't exists anymore. You could either define doc within the second sub-routine, too or you creates a global variable outside from a routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 14:04:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Debugging-QlikView-VBScript/m-p/410152#M701217</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-02-17T14:04:52Z</dc:date>
    </item>
  </channel>
</rss>

