<?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 Msgbox in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-Msgbox/m-p/150008#M28110</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try following instead of msgbox:&lt;/P&gt;&lt;P&gt;ActiveDocument.ShowPopup "Pause", 2000&lt;/P&gt;&lt;P&gt;You can also provide 3rd and 4th parameters to set it's colors. Look into APIGuide for details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jul 2009 21:25:37 GMT</pubDate>
    <dc:creator>disqr_rm</dc:creator>
    <dc:date>2009-07-22T21:25:37Z</dc:date>
    <item>
      <title>Macro Msgbox</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Msgbox/m-p/150007#M28109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;is it possible to set a timer for a msbox, so that a messagebox appears e.g. for 5 seconds, after this 5 seconds the macro should be executed further.&lt;/P&gt;&lt;P&gt;My problem is that "ActiveDocument.GetApplication.Sleep 5000" / Application.Sleep(5000)/ Waitforidle don't working if I open the qlikview application from server. (Anyone got this working when opening from server? ). Errormessage says that macro has no functionality. Although it works on my local machine. I can execute the macro with the client installed on the server. Problem is opening it with local client from server or with e.g. ie plugin.&lt;/P&gt;&lt;P&gt;If anyone has a solution please let me know. Thanks.&lt;/P&gt;&lt;P&gt;I know it's not best practice but how would a waiting loop like? Sry I'm a newbie to vbscript.&lt;/P&gt;&lt;P&gt;Script:&lt;BR /&gt;&lt;BR /&gt;function printReportPDF(reportID, pdfOutputFile)&lt;BR /&gt; Set WSHShell = CreateObject("WScript.Shell")&lt;BR /&gt; WSHShell.RegWrite "HKCU\Software\QlikViewPDF\OutputFile", pdfOutputFile, "REG_SZ"&lt;BR /&gt; WSHShell.RegWrite "HKCU\Software\QlikViewPDF\BypassSaveAs", "1", "REG_SZ"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; ActiveDocument.PrintReport reportID, "QlikViewPDF", false&lt;BR /&gt; ActiveDocument.GetApplication.Sleep 5000&lt;BR /&gt; 'ActiveDocument.WaitForIdle&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'WSHShell.Sleep 5000 // also not working&lt;/P&gt;&lt;P&gt;msgbox ("Pause") // otherwise the pdfs aren't generated (only last one)&lt;/P&gt;&lt;P&gt;set WSHShell = nothing&lt;BR /&gt;end function&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;Aloah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 20:06:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Msgbox/m-p/150007#M28109</guid>
      <dc:creator />
      <dc:date>2009-07-22T20:06:31Z</dc:date>
    </item>
    <item>
      <title>Macro Msgbox</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Msgbox/m-p/150008#M28110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try following instead of msgbox:&lt;/P&gt;&lt;P&gt;ActiveDocument.ShowPopup "Pause", 2000&lt;/P&gt;&lt;P&gt;You can also provide 3rd and 4th parameters to set it's colors. Look into APIGuide for details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 21:25:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Msgbox/m-p/150008#M28110</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2009-07-22T21:25:37Z</dc:date>
    </item>
    <item>
      <title>Macro Msgbox</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Msgbox/m-p/150009#M28111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rakesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tried that. Problem is the application doesn't really pause. I have absolutely no idea how to pause the application from printing without using&lt;BR /&gt;.sleep / idle.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 21:41:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Msgbox/m-p/150009#M28111</guid>
      <dc:creator />
      <dc:date>2009-07-22T21:41:05Z</dc:date>
    </item>
    <item>
      <title>Macro Msgbox</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Msgbox/m-p/150010#M28112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where you calling this function from? QV Script or a VB Sub?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 21:50:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Msgbox/m-p/150010#M28112</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2009-07-22T21:50:27Z</dc:date>
    </item>
    <item>
      <title>Macro Msgbox</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Msgbox/m-p/150011#M28113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm calling the function from vb sub.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub printReport&lt;BR /&gt;&lt;BR /&gt; ' Print report to PDF&lt;BR /&gt; 'ActiveDocument.GetApplication.Sleep 5000 // tried sleep here -&amp;gt; also not working&lt;BR /&gt; printReportPDF reportID, reportFile&lt;BR /&gt;&lt;BR /&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 22:04:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Msgbox/m-p/150011#M28113</guid>
      <dc:creator />
      <dc:date>2009-07-22T22:04:04Z</dc:date>
    </item>
  </channel>
</rss>

