<?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: Executing macro from vbs and wait until finishes in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Executing-macro-from-vbs-and-wait-until-finishes/m-p/760529#M270589</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Although WaitForIdle is ok it does not wait for a macro to be finished.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the other question yes, I meant that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Feb 2015 08:31:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-02-09T08:31:55Z</dc:date>
    <item>
      <title>Executing macro from vbs and wait until finishes</title>
      <link>https://community.qlik.com/t5/QlikView/Executing-macro-from-vbs-and-wait-until-finishes/m-p/760527#M270587</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;I need to do some exports to excel filtering by some different clients and then send them by e-mail following a schedule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to call the macro from the vbs but I couldn't find the proper way, I looked for in the forum and I got some shell scripts but not vbs, so a workaround is calling the push event from a button that executes the macro. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way to call the macro from vbs? it looks strange because lots of things can be done from vbs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another problem is the vbs doesn't wait until the macro finishes, so it continue executing other things, I found a workaround using a variable as a traffic light and I do a qvDoc.GetApplication.WaitForIdle 2000 inside a while.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is, is there any other more elegant way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 16:34:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Executing-macro-from-vbs-and-wait-until-finishes/m-p/760527#M270587</guid>
      <dc:creator />
      <dc:date>2015-02-06T16:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Executing macro from vbs and wait until finishes</title>
      <link>https://community.qlik.com/t5/QlikView/Executing-macro-from-vbs-and-wait-until-finishes/m-p/760528#M270588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WaitForIdle is the right way to wait for all calculations to be finished after the previous command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what you mean by "calling the macro from vbs"?&amp;nbsp; If you mean "ways of calling a VBScript macro", then you can invoke them from buttons, other objects that can trigger actions, or from document-level and sheet-level triggers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;www.masterssummit.com - take your QlikView skills to the next level!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 17:32:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Executing-macro-from-vbs-and-wait-until-finishes/m-p/760528#M270588</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-02-06T17:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Executing macro from vbs and wait until finishes</title>
      <link>https://community.qlik.com/t5/QlikView/Executing-macro-from-vbs-and-wait-until-finishes/m-p/760529#M270589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Although WaitForIdle is ok it does not wait for a macro to be finished.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the other question yes, I meant that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 08:31:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Executing-macro-from-vbs-and-wait-until-finishes/m-p/760529#M270589</guid>
      <dc:creator />
      <dc:date>2015-02-09T08:31:55Z</dc:date>
    </item>
  </channel>
</rss>

