<?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 VB Macro Query in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/VB-Macro-Query/m-p/158509#M33562</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;I think this problem doesn't have any solution, I found this possible explanation for your case:&lt;/P&gt;&lt;P&gt;"If your macro is trying to navigate through the ActiveDocument, as of 8.2/8.5 most of the ActiveDocument properties do not exist during script execution."&lt;/P&gt;&lt;P&gt;Sorry about that.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Nov 2009 18:24:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-11-20T18:24:24Z</dc:date>
    <item>
      <title>VB Macro Query</title>
      <link>https://community.qlik.com/t5/QlikView/VB-Macro-Query/m-p/158503#M33556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;ActiveDocument.Variables("Var1") .GetContent.String&lt;/P&gt;&lt;P&gt;The above code is working if i write this in&lt;/P&gt;&lt;P&gt;Sub test()&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;But If i write it inside function like below&lt;/P&gt;&lt;P&gt;Function Test()&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;P&gt;it is not working...At the time of reload, QV application getting closed automatically everytime.&lt;/P&gt;&lt;P&gt;Any suggestion please!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 18:57:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-Macro-Query/m-p/158503#M33556</guid>
      <dc:creator />
      <dc:date>2009-11-19T18:57:54Z</dc:date>
    </item>
    <item>
      <title>VB Macro Query</title>
      <link>https://community.qlik.com/t5/QlikView/VB-Macro-Query/m-p/158504#M33557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun&lt;/P&gt;&lt;P&gt;This might not be exactly what you want to hear, but here goes anyway:&lt;/P&gt;&lt;P&gt;Why not put it in a Sub? What is the problem with a Sub?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 19:54:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-Macro-Query/m-p/158504#M33557</guid>
      <dc:creator />
      <dc:date>2009-11-19T19:54:29Z</dc:date>
    </item>
    <item>
      <title>VB Macro Query</title>
      <link>https://community.qlik.com/t5/QlikView/VB-Macro-Query/m-p/158505#M33558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;Test my attached example, it works fine for me.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 20:04:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-Macro-Query/m-p/158505#M33558</guid>
      <dc:creator />
      <dc:date>2009-11-19T20:04:00Z</dc:date>
    </item>
    <item>
      <title>VB Macro Query</title>
      <link>https://community.qlik.com/t5/QlikView/VB-Macro-Query/m-p/158506#M33559</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;Thanks for the reply.&lt;/P&gt;&lt;P&gt;I have to use the output of subroutine in to load script. Since Sub can't return a value i've to use Function only.&lt;/P&gt;&lt;P&gt;I am attaching the same qv you sent to me with two changes:&lt;/P&gt;&lt;P&gt;a. Changed TestFunction in Macro editor. Now it is returning the value of the variable.&lt;/P&gt;&lt;P&gt;b. Calling TestFunction from Load Script.&lt;/P&gt;&lt;P&gt;Try to load the data. Its not working.&lt;/P&gt;&lt;P&gt;Please suggest!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2009 13:42:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-Macro-Query/m-p/158506#M33559</guid>
      <dc:creator />
      <dc:date>2009-11-20T13:42:14Z</dc:date>
    </item>
    <item>
      <title>VB Macro Query</title>
      <link>https://community.qlik.com/t5/QlikView/VB-Macro-Query/m-p/158507#M33560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Around,&lt;/P&gt;&lt;P&gt;I don't understand if what you need is changing the variable value in the macro function before the load script execution or simply you need get back the last value of the variable. I've attached a possible solution to the second point. The solution for the first point will depends what you need.&lt;/P&gt;&lt;P&gt;Check out my attached example and let me know if it is what are you looking for.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2009 16:02:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-Macro-Query/m-p/158507#M33560</guid>
      <dc:creator />
      <dc:date>2009-11-20T16:02:57Z</dc:date>
    </item>
    <item>
      <title>VB Macro Query</title>
      <link>https://community.qlik.com/t5/QlikView/VB-Macro-Query/m-p/158508#M33561</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;Thanks for your efforts.&lt;/P&gt;&lt;P&gt;It doesn't matter what we want from the variable - we might be using it in some calculation etc. What I want is to call a macro function from Load Script - Its simple and I am doing this for a long time.&lt;/P&gt;&lt;P&gt;My problem is that when i am calling a function from a load script, its not working if i am capturing some variable into that function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2009 16:25:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-Macro-Query/m-p/158508#M33561</guid>
      <dc:creator />
      <dc:date>2009-11-20T16:25:06Z</dc:date>
    </item>
    <item>
      <title>VB Macro Query</title>
      <link>https://community.qlik.com/t5/QlikView/VB-Macro-Query/m-p/158509#M33562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;I think this problem doesn't have any solution, I found this possible explanation for your case:&lt;/P&gt;&lt;P&gt;"If your macro is trying to navigate through the ActiveDocument, as of 8.2/8.5 most of the ActiveDocument properties do not exist during script execution."&lt;/P&gt;&lt;P&gt;Sorry about that.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2009 18:24:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-Macro-Query/m-p/158509#M33562</guid>
      <dc:creator />
      <dc:date>2009-11-20T18:24:24Z</dc:date>
    </item>
    <item>
      <title>VB Macro Query</title>
      <link>https://community.qlik.com/t5/QlikView/VB-Macro-Query/m-p/158510#M33563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Arun.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you get any solution how you can call a Macro from Load script?&lt;/P&gt;&lt;P&gt;I'm looking for same solution...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Mar 2010 16:00:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-Macro-Query/m-p/158510#M33563</guid>
      <dc:creator />
      <dc:date>2010-03-02T16:00:41Z</dc:date>
    </item>
    <item>
      <title>VB Macro Query</title>
      <link>https://community.qlik.com/t5/QlikView/VB-Macro-Query/m-p/158511#M33564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I fix it - via settings -&amp;gt; document properties -&amp;gt; triggers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Mar 2010 16:36:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-Macro-Query/m-p/158511#M33564</guid>
      <dc:creator />
      <dc:date>2010-03-02T16:36:48Z</dc:date>
    </item>
  </channel>
</rss>

