<?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 VBscript error: Object required: 'WScript' in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/VBscript-error-Object-required-WScript/m-p/183665#M48832</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a macro that exports an object to a CSV file.&lt;/P&gt;&lt;P&gt;I would like to display a message when the export starts and one when it is done. The first message should not require the user to click ok. So msgbox is not an option.&lt;/P&gt;&lt;P&gt;From the net I plucked this:&lt;BR /&gt;Dim WshShell, BtnCode&lt;BR /&gt;Set WshShell = WScript.CreateObject("WScript.Shell")&lt;/P&gt;&lt;P&gt;BtnCode = WshShell.Popup("Export started", 10)&lt;BR /&gt;&lt;BR /&gt;The macro doesn't work:&lt;/P&gt;&lt;P&gt;Object required: 'WScript'&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Note: security is set to System Access and Allow System Access.&lt;/P&gt;&lt;P&gt;QV 8.5&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anton&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Sep 2010 12:01:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-09-01T12:01:51Z</dc:date>
    <item>
      <title>VBscript error: Object required: 'WScript'</title>
      <link>https://community.qlik.com/t5/QlikView/VBscript-error-Object-required-WScript/m-p/183665#M48832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a macro that exports an object to a CSV file.&lt;/P&gt;&lt;P&gt;I would like to display a message when the export starts and one when it is done. The first message should not require the user to click ok. So msgbox is not an option.&lt;/P&gt;&lt;P&gt;From the net I plucked this:&lt;BR /&gt;Dim WshShell, BtnCode&lt;BR /&gt;Set WshShell = WScript.CreateObject("WScript.Shell")&lt;/P&gt;&lt;P&gt;BtnCode = WshShell.Popup("Export started", 10)&lt;BR /&gt;&lt;BR /&gt;The macro doesn't work:&lt;/P&gt;&lt;P&gt;Object required: 'WScript'&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Note: security is set to System Access and Allow System Access.&lt;/P&gt;&lt;P&gt;QV 8.5&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anton&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 12:01:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBscript-error-Object-required-WScript/m-p/183665#M48832</guid>
      <dc:creator />
      <dc:date>2010-09-01T12:01:51Z</dc:date>
    </item>
    <item>
      <title>VBscript error: Object required: 'WScript'</title>
      <link>https://community.qlik.com/t5/QlikView/VBscript-error-Object-required-WScript/m-p/183666#M48833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i not use wscript. and funct&lt;/P&gt;&lt;P&gt;good luck, Luis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 12:17:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBscript-error-Object-required-WScript/m-p/183666#M48833</guid>
      <dc:creator>llauses243</dc:creator>
      <dc:date>2010-09-01T12:17:31Z</dc:date>
    </item>
    <item>
      <title>VBscript error: Object required: 'WScript'</title>
      <link>https://community.qlik.com/t5/QlikView/VBscript-error-Object-required-WScript/m-p/183667#M48834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luis,&lt;/P&gt;&lt;P&gt;Thanks. Now I get the pop-up, but it is waiting for the user to click ok. I does not go away after 10 seconds as it should...&lt;/P&gt;&lt;P&gt;Anton&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 13:24:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBscript-error-Object-required-WScript/m-p/183667#M48834</guid>
      <dc:creator />
      <dc:date>2010-09-01T13:24:37Z</dc:date>
    </item>
    <item>
      <title>VBscript error: Object required: 'WScript'</title>
      <link>https://community.qlik.com/t5/QlikView/VBscript-error-Object-required-WScript/m-p/183668#M48835</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;No solution yet...&lt;/P&gt;&lt;P&gt;Does anyone know of a way to show a message during the execution of a macro that does not require any action from the user?&lt;/P&gt;&lt;P&gt;In other words: showing a message that does not interupt the macro execution?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anton&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Sep 2010 12:29:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBscript-error-Object-required-WScript/m-p/183668#M48835</guid>
      <dc:creator />
      <dc:date>2010-09-12T12:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: VBscript error: Object required: 'WScript'</title>
      <link>https://community.qlik.com/t5/QlikView/VBscript-error-Object-required-WScript/m-p/183669#M48836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Anton,&lt;/P&gt;&lt;P&gt;I had the same problem and I solved it by removing the word &lt;STRONG&gt;WScript&lt;/STRONG&gt; before CreateObject&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote" style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;'Correct&lt;BR /&gt;Set WshShell = CreateObject("WScript.Shell")&lt;BR /&gt;Set oExec = WshShell.Exec("calc.exe")&lt;BR /&gt;'NOT Correct&lt;BR /&gt;Set WshShell = &lt;STRONG&gt;WScript.&lt;/STRONG&gt; CreateObject("WScript.Shell")&lt;BR /&gt;Set oExec = WshShell.Exec("calc.exe")&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&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;Luca Jonathan Panetta&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.pljsoftware.com/business-intelligence.html" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;PLJ Software&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 14:23:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBscript-error-Object-required-WScript/m-p/183669#M48836</guid>
      <dc:creator>pljsoftware</dc:creator>
      <dc:date>2011-04-11T14:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: VBscript error: Object required: 'WScript'</title>
      <link>https://community.qlik.com/t5/QlikView/VBscript-error-Object-required-WScript/m-p/183670#M48837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Luca,&lt;/P&gt;&lt;P&gt;this helped me so much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Peyman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 13:31:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBscript-error-Object-required-WScript/m-p/183670#M48837</guid>
      <dc:creator>azimabadi</dc:creator>
      <dc:date>2012-08-08T13:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: VBscript error: Object required: 'WScript'</title>
      <link>https://community.qlik.com/t5/QlikView/VBscript-error-Object-required-WScript/m-p/183671#M48838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can i close this application(i.e. calc.exe) from my script too?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Peyman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2012 14:31:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBscript-error-Object-required-WScript/m-p/183671#M48838</guid>
      <dc:creator>azimabadi</dc:creator>
      <dc:date>2012-08-27T14:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: VBscript error: Object required: 'WScript'</title>
      <link>https://community.qlik.com/t5/QlikView/VBscript-error-Object-required-WScript/m-p/183672#M48839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peyman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;look these&lt;/P&gt;&lt;P&gt;&lt;A class="loading active_link" href="http://ss64.com/vb/exec.html"&gt;http://ss64.com/vb/exec.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="loading" href="http://www.excelforum.com/excel-programming-vba-macros/480065-how-to-close-an-application.html"&gt;http://www.excelforum.com/excel-programming-vba-macros/480065-how-to-close-an-application.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But &lt;STRONG&gt;NOTE&lt;/STRONG&gt; that the use of Terminate can generate &lt;STRONG&gt;memory leaks&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Luca Jonathan Panetta&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.pljsoftware.com"&gt;PLJ Software&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Sep 2012 00:05:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBscript-error-Object-required-WScript/m-p/183672#M48839</guid>
      <dc:creator>pljsoftware</dc:creator>
      <dc:date>2012-09-02T00:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: VBscript error: Object required: 'WScript'</title>
      <link>https://community.qlik.com/t5/QlikView/VBscript-error-Object-required-WScript/m-p/183673#M48840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;was there a solution to this? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 02:17:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBscript-error-Object-required-WScript/m-p/183673#M48840</guid>
      <dc:creator />
      <dc:date>2017-02-16T02:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: VBscript error: Object required: 'WScript'</title>
      <link>https://community.qlik.com/t5/QlikView/VBscript-error-Object-required-WScript/m-p/183674#M48841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A tiny modification of the script he found on the internet will make it work in a Module/Macro/VBScript in QlikView:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-02-16 03_40_08-Edit Module.png" class="jive-image image-1" src="/legacyfs/online/153283_2017-02-16 03_40_08-Edit Module.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you leave out WScript in front of the CreateObject() it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthermore you have to change these two settings from safe mode in the Edit Module Editor:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requested Module Security:&amp;nbsp; System Access&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Local Security: Allow System Access&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code should be wrapped in a sub routine to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-02-16 03_56_38-Edit Module.png" class="jive-image image-2" src="/legacyfs/online/153287_2017-02-16 03_56_38-Edit Module.png" style="height: 287px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW: The timeout that is supposed to work is a bug in the WShell component in Windows. Has nothing to do with QlikView. So putting a value for timeout like 10 seconds will never work... You will have to press a button.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 02:58:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBscript-error-Object-required-WScript/m-p/183674#M48841</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-02-16T02:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: VBscript error: Object required: 'WScript'</title>
      <link>https://community.qlik.com/t5/QlikView/VBscript-error-Object-required-WScript/m-p/183675#M48842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By doing this it will also work with timeout:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-02-16 04_04_31-Edit Module.png" class="jive-image image-1" src="/legacyfs/online/153290_2017-02-16 04_04_31-Edit Module.png" style="height: 157px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 03:08:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBscript-error-Object-required-WScript/m-p/183675#M48842</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-02-16T03:08:04Z</dc:date>
    </item>
  </channel>
</rss>

