<?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: Execute Macro from Load Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Execute-Macro-from-Load-Script/m-p/1798578#M1211474</link>
    <description>&lt;P&gt;Hi, thank you for you replay.&lt;/P&gt;&lt;P&gt;you are right , the function is within a sub.&lt;/P&gt;&lt;P&gt;how can call this sub from a function ?&lt;/P&gt;</description>
    <pubDate>Sun, 11 Apr 2021 11:42:05 GMT</pubDate>
    <dc:creator>ilanbaruch</dc:creator>
    <dc:date>2021-04-11T11:42:05Z</dc:date>
    <item>
      <title>Execute Macro from Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-Macro-from-Load-Script/m-p/1798001#M1211428</link>
      <description>&lt;P&gt;hi all&lt;/P&gt;&lt;P&gt;in my model I have a Macro script&lt;/P&gt;&lt;P&gt;I want to execute this macro from within the load script, is that possible ?&lt;/P&gt;&lt;P&gt;advanced thanks&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 13:20:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-Macro-from-Load-Script/m-p/1798001#M1211428</guid>
      <dc:creator>ilanbaruch</dc:creator>
      <dc:date>2021-04-08T13:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Macro from Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-Macro-from-Load-Script/m-p/1798012#M1211430</link>
      <description>&lt;P&gt;Macro functions can be used like QlikView functions in the load script. For example via a variable assignment:&lt;/P&gt;&lt;P&gt;let result=VBFunctionName();&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 13:38:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-Macro-from-Load-Script/m-p/1798012#M1211430</guid>
      <dc:creator>cwolf</dc:creator>
      <dc:date>2021-04-08T13:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Macro from Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-Macro-from-Load-Script/m-p/1798016#M1211431</link>
      <description>&lt;P&gt;and than ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;execute ?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 13:54:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-Macro-from-Load-Script/m-p/1798016#M1211431</guid>
      <dc:creator>ilanbaruch</dc:creator>
      <dc:date>2021-04-08T13:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Macro from Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-Macro-from-Load-Script/m-p/1798025#M1211433</link>
      <description>&lt;P&gt;For example you have a function:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;function Test1()
	' Type your VB script here
        .
        .
        .
 	'return a result
 	Test1="Ok"
end function&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then the line&lt;/P&gt;&lt;P&gt;let result1=Test1();&lt;/P&gt;&lt;P&gt;will execute the function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can also use functions with parameters:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;function Test2(param1,param2)
 	Test2=param1 &amp;amp; " " &amp;amp; param2 &amp;amp; "!"
end function&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let result2=Test2('Hello','World');&lt;/P&gt;&lt;P&gt;The variable result2 now contains "Hello World!".&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 14:33:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-Macro-from-Load-Script/m-p/1798025#M1211433</guid>
      <dc:creator>cwolf</dc:creator>
      <dc:date>2021-04-08T14:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Macro from Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-Macro-from-Load-Script/m-p/1798032#M1211435</link>
      <description>&lt;P&gt;first of all thank you.&lt;/P&gt;&lt;P&gt;I have the macro script as in your example. it is ready and working if I trigger it from UI.&lt;/P&gt;&lt;P&gt;the macro script is in the macro script section (Ctrl+M) I want to trigger it from the script editor&amp;nbsp; (Ctrl+E) .&lt;/P&gt;&lt;P&gt;i set the variable as you suggested but it isn't working&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 14:45:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-Macro-from-Load-Script/m-p/1798032#M1211435</guid>
      <dc:creator>ilanbaruch</dc:creator>
      <dc:date>2021-04-08T14:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Macro from Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-Macro-from-Load-Script/m-p/1798037#M1211436</link>
      <description>&lt;P&gt;See attachement.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 14:54:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-Macro-from-Load-Script/m-p/1798037#M1211436</guid>
      <dc:creator>cwolf</dc:creator>
      <dc:date>2021-04-08T14:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Macro from Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-Macro-from-Load-Script/m-p/1798044#M1211437</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/220"&gt;@cwolf&lt;/a&gt;&amp;nbsp;said, you can trigger Functions from the script, but not Subs. If your code is in a Sub, you will need to define a Function that calls the Sub.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When called from the script,&amp;nbsp; VB Macro code cannot access the ActiveDocument object. So if you trying to do something like access chart data your macro will not work from script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 15:04:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-Macro-from-Load-Script/m-p/1798044#M1211437</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2021-04-08T15:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Macro from Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-Macro-from-Load-Script/m-p/1798578#M1211474</link>
      <description>&lt;P&gt;Hi, thank you for you replay.&lt;/P&gt;&lt;P&gt;you are right , the function is within a sub.&lt;/P&gt;&lt;P&gt;how can call this sub from a function ?&lt;/P&gt;</description>
      <pubDate>Sun, 11 Apr 2021 11:42:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-Macro-from-Load-Script/m-p/1798578#M1211474</guid>
      <dc:creator>ilanbaruch</dc:creator>
      <dc:date>2021-04-11T11:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Macro from Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-Macro-from-Load-Script/m-p/1798604#M1211479</link>
      <description>&lt;LI-CODE lang="javascript"&gt;Sub MySub
  ....
End Sub

Function MyFunction
  Call MySub
End Function&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 11 Apr 2021 22:08:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-Macro-from-Load-Script/m-p/1798604#M1211479</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2021-04-11T22:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Macro from Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Execute-Macro-from-Load-Script/m-p/1800315#M1211617</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sun, 18 Apr 2021 12:41:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Execute-Macro-from-Load-Script/m-p/1800315#M1211617</guid>
      <dc:creator>ilanbaruch</dc:creator>
      <dc:date>2021-04-18T12:41:45Z</dc:date>
    </item>
  </channel>
</rss>

