<?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 Macro outside qvw in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-outside-qvw/m-p/278943#M586536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calling macro outside the qvw file,&amp;nbsp; is it supported? If yes please suggest how to call,&amp;nbsp; if my macro code reside in a text file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jun 2011 09:31:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-06-10T09:31:53Z</dc:date>
    <item>
      <title>Macro outside qvw</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-outside-qvw/m-p/278943#M586536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calling macro outside the qvw file,&amp;nbsp; is it supported? If yes please suggest how to call,&amp;nbsp; if my macro code reside in a text file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2011 09:31:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-outside-qvw/m-p/278943#M586536</guid>
      <dc:creator />
      <dc:date>2011-06-10T09:31:53Z</dc:date>
    </item>
    <item>
      <title>Macro outside qvw</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-outside-qvw/m-p/278944#M586537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting question. In theory, it should be possible, with some limitations and a little complexity:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The macro code is VB script or Javascript, so you can run it in cscript. If you don't know what cscript is, then the external macro is not the way to learn.&lt;/LI&gt;&lt;LI&gt;You will be able to invoke Subs but not functions. In particular, you will not be able to use macro functions from your load script.&lt;/LI&gt;&lt;LI&gt;You can call functions from the load script using EXTERNAL to invoke the cscript, or from a normal macro be creating a shell object to do the same. You will not be able to return anything to your Qlikview model.&lt;/LI&gt;&lt;LI&gt;The external macro would have no knowledge of your model, so it will not be able to manipulate objects or process any data from the model. It could open and manipulate a copy of the model. &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am curious why you would want to do this. It is unfortunately not a practical way to 're-use' the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2011 11:25:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-outside-qvw/m-p/278944#M586537</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-06-10T11:25:52Z</dc:date>
    </item>
    <item>
      <title>Macro outside qvw</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-outside-qvw/m-p/278945#M586538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can run VBScript externally to QlikView, no problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to createobject to QlikTech.QlikView.&amp;nbsp; This will open QlikView if it is not open.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that you will need to have a named user CAL for this to work on your files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim Application&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set Application=CreateObject("QlikTech.QlikView")&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Application.OpenDoc "C:\temp\test.qvw"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2011 22:38:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-outside-qvw/m-p/278945#M586538</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2011-06-10T22:38:00Z</dc:date>
    </item>
  </channel>
</rss>

