<?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: Call Macro from Load Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Call-Macro-from-Load-Script/m-p/1307036#M406704</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A couple of issues:&lt;/P&gt;&lt;P&gt;1. You cannot call Macro SUBs from the loadscript.&amp;nbsp; You can only call Macro Functions like this:&lt;/P&gt;&lt;P&gt;LET vx = MyFunction(x);&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;LOAD MyFunction(x) as myx, ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The ActiveDocument object is not available during reload, so your code won't work no matter how called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may want to try triggering this Sub in a OnPostReload trigger. I haven't tried that for years, but ActiveDocument may be available there.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Jun 2017 15:06:50 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2017-06-30T15:06:50Z</dc:date>
    <item>
      <title>Call Macro from Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Call-Macro-from-Load-Script/m-p/1307035#M406703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following Macro that I am trying to execute from the load script, but am having difficulties:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub Test_Extraction&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'Extract the data required to calculate diversification credit&lt;BR /&gt; SET myTable=ActiveDocument.GetSheetObject("CH1101")&amp;nbsp;&amp;nbsp; 'Data - Diversification / Par&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'Save the diversification credit tables to .csv files&lt;BR /&gt; myTable.Export "C:\Users\mridgley\Desktop\Manulife\Capital\R - QV Integration\Demo\NEW Macro Test\Dataset.csv",",",0 &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;I have tried to use Call Test_Extraction() but I continue to get an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate any help / suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2017 14:45:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Call-Macro-from-Load-Script/m-p/1307035#M406703</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-30T14:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Call Macro from Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Call-Macro-from-Load-Script/m-p/1307036#M406704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A couple of issues:&lt;/P&gt;&lt;P&gt;1. You cannot call Macro SUBs from the loadscript.&amp;nbsp; You can only call Macro Functions like this:&lt;/P&gt;&lt;P&gt;LET vx = MyFunction(x);&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;LOAD MyFunction(x) as myx, ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The ActiveDocument object is not available during reload, so your code won't work no matter how called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may want to try triggering this Sub in a OnPostReload trigger. I haven't tried that for years, but ActiveDocument may be available there.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2017 15:06:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Call-Macro-from-Load-Script/m-p/1307036#M406704</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2017-06-30T15:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Call Macro from Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Call-Macro-from-Load-Script/m-p/1307037#M406705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for this post,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it any Script (Edit Script) is available to export Edit Script to another location, Not using macros and -prj concept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like export System tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me for this situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Allabakshu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2018 14:56:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Call-Macro-from-Load-Script/m-p/1307037#M406705</guid>
      <dc:creator>shaikbakshu</dc:creator>
      <dc:date>2018-07-31T14:56:45Z</dc:date>
    </item>
  </channel>
</rss>

