<?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 when trying to reload and export in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Vbscript-error-when-trying-to-reload-and-export/m-p/155207#M1310086</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;Thanks for your replay.&lt;/P&gt;&lt;P&gt;I have tries your suggestion but It didn't work and I am still getting the same error message.&lt;/P&gt;&lt;P&gt;Just to be sure I did ok you ment for this ?&lt;/P&gt;&lt;P&gt;Set MyApp = CreateObject("QlikTech.QlikView")&lt;BR /&gt;Set MyDoc = MyApp.OpenDoc ("D:\QlikView\Production\Model\Today_Sales\todaySales.qvw","","")&lt;BR /&gt;MyDoc.Reload&lt;BR /&gt;Set obj = MyDoc.GetSheetObject("CH88")&lt;BR /&gt;Obj.ExportBiff "C:\temp\todayavaragesales.xls"&lt;BR /&gt;Set obj = MyDoc.GetSheetObject("CH92")&lt;BR /&gt;Obj.ExportBiff "C:\temp\todaysales.xls"&lt;BR /&gt;MyDoc.GetSheetObject("BU01").Press&lt;BR /&gt;MyDoc.Save&lt;/P&gt;&lt;P&gt;Set MyDoc = Nothing&lt;BR /&gt;MyApp.Quit&lt;BR /&gt;Set MyApp = Nothing&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Oct 2010 22:52:00 GMT</pubDate>
    <dc:creator>egoziyan</dc:creator>
    <dc:date>2010-10-04T22:52:00Z</dc:date>
    <item>
      <title>Vbscript error when trying to reload and export</title>
      <link>https://community.qlik.com/t5/QlikView/Vbscript-error-when-trying-to-reload-and-export/m-p/155204#M1310082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;G'day All,&lt;/P&gt;&lt;P&gt;I have a which shows today sales in a simple chart (pivot table) which I want to export to excell and send by email. after reading many posts here I have created a vbscript which open the QVW reload it, make the export and then execute a macro that send the email.&lt;/P&gt;&lt;P&gt;everything worked fine the first few times I have tested it but today when ever I run the vbscript I am getting the following error:&lt;/P&gt;&lt;P&gt;"Script:&lt;BR /&gt;c:\user\...\todaysales.vbs&lt;BR /&gt;Line: 4&lt;BR /&gt;Char:1&lt;BR /&gt;Error: Object required: 'ActiveDocument'&lt;BR /&gt;Code: 800A01A8&lt;BR /&gt;Source: Microsoft VBScript runtime error"&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/12/2845.script_2D00_error.jpg" target="_blank"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;My script is:&lt;/P&gt;&lt;P&gt;Set MyApp = CreateObject("QlikTech.QlikView")&lt;BR /&gt;Set MyDoc = MyApp.OpenDoc ("D:\QlikView\Production\Model\Today_Sales\todaySales.qvw","","")&lt;BR /&gt;Set ActiveDocument = MyDoc&lt;BR /&gt;ActiveDocument.Reload&lt;BR /&gt;Set obj = ActiveDocument.GetSheetObject("CH88")&lt;BR /&gt;Obj.ExportBiff "C:\temp\todayavaragesales.xls"&lt;BR /&gt;Set obj = ActiveDocument.GetSheetObject("CH92")&lt;BR /&gt;Obj.ExportBiff "C:\temp\todaysales.xls"&lt;BR /&gt;ActiveDocument.GetSheetObject("BU01").Press&lt;BR /&gt;ActiveDocument.Save&lt;/P&gt;&lt;P&gt;Set MyDoc = Nothing&lt;BR /&gt;MyApp.Quit&lt;BR /&gt;Set MyApp = Nothing&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/12/2845.script_2D00_error.jpg" target="_blank"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The only way to solve it is to restart the computer, but after running o.k for one time the error starting again.&lt;BR /&gt;I am using win 2008 server 64bit and running qlikview 9 SR5&lt;/P&gt;&lt;P&gt;Any help would be appreciated&lt;/P&gt;&lt;P&gt;10x in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vbscript-error-when-trying-to-reload-and-export/m-p/155204#M1310082</guid>
      <dc:creator>egoziyan</dc:creator>
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Vbscript error when trying to reload and export</title>
      <link>https://community.qlik.com/t5/QlikView/Vbscript-error-when-trying-to-reload-and-export/m-p/155205#M1310083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached a capture of the error message&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/12/0880.script_2D00_error.jpg"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/12/0880.script_2D00_error.jpg" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 01:21:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vbscript-error-when-trying-to-reload-and-export/m-p/155205#M1310083</guid>
      <dc:creator>egoziyan</dc:creator>
      <dc:date>2010-10-04T01:21:52Z</dc:date>
    </item>
    <item>
      <title>Vbscript error when trying to reload and export</title>
      <link>https://community.qlik.com/t5/QlikView/Vbscript-error-when-trying-to-reload-and-export/m-p/155206#M1310084</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 may be wrong but this is what I suspect is happening.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;You open MyDoc and then assign MyDoc to ActiveDocument&lt;/LI&gt;&lt;LI&gt;At the end you free up MyDoc, but not ActiveDocument&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The assignment is essentially redundant. I would suggest that you delete the line "Set ActiveDocument = MyDoc" and change all the references to ActiveDocument to MyDoc.&lt;/P&gt;&lt;P&gt;Give that a shot and let us know whether that worked or not.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 08:26:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vbscript-error-when-trying-to-reload-and-export/m-p/155206#M1310084</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-10-04T08:26:05Z</dc:date>
    </item>
    <item>
      <title>Vbscript error when trying to reload and export</title>
      <link>https://community.qlik.com/t5/QlikView/Vbscript-error-when-trying-to-reload-and-export/m-p/155207#M1310086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;Thanks for your replay.&lt;/P&gt;&lt;P&gt;I have tries your suggestion but It didn't work and I am still getting the same error message.&lt;/P&gt;&lt;P&gt;Just to be sure I did ok you ment for this ?&lt;/P&gt;&lt;P&gt;Set MyApp = CreateObject("QlikTech.QlikView")&lt;BR /&gt;Set MyDoc = MyApp.OpenDoc ("D:\QlikView\Production\Model\Today_Sales\todaySales.qvw","","")&lt;BR /&gt;MyDoc.Reload&lt;BR /&gt;Set obj = MyDoc.GetSheetObject("CH88")&lt;BR /&gt;Obj.ExportBiff "C:\temp\todayavaragesales.xls"&lt;BR /&gt;Set obj = MyDoc.GetSheetObject("CH92")&lt;BR /&gt;Obj.ExportBiff "C:\temp\todaysales.xls"&lt;BR /&gt;MyDoc.GetSheetObject("BU01").Press&lt;BR /&gt;MyDoc.Save&lt;/P&gt;&lt;P&gt;Set MyDoc = Nothing&lt;BR /&gt;MyApp.Quit&lt;BR /&gt;Set MyApp = Nothing&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 22:52:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vbscript-error-when-trying-to-reload-and-export/m-p/155207#M1310086</guid>
      <dc:creator>egoziyan</dc:creator>
      <dc:date>2010-10-04T22:52:00Z</dc:date>
    </item>
    <item>
      <title>Vbscript error when trying to reload and export</title>
      <link>https://community.qlik.com/t5/QlikView/Vbscript-error-when-trying-to-reload-and-export/m-p/155208#M1310088</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 am assuming that the error now refers to MyDoc rather than ActiveDocument.&lt;/P&gt;&lt;P&gt;It seems that the OpenDoc command is not successfully opening the QV document. This could be due to one of the following (which you may have already checked, but in case you havent):&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the path is incorrect. Verify that the document exists at that location, and that the script is running on the same machine as the &lt;span class="lia-unicode-emoji" title=":anguished_face:"&gt;😧&lt;/span&gt; drive.&lt;/LI&gt;&lt;LI&gt;the document has section access, and you are not running the script in the correct user context (NTNAME section access), or it requires a username/password in the second and third parameters (not an empty string).&lt;/LI&gt;&lt;LI&gt;the document is unavailable due to active directory / NT security settings&lt;/LI&gt;&lt;LI&gt;lastly, and I hope not the case, the document is corrupted.&lt;/LI&gt;&lt;LI&gt;Something else I haven't thought of.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Can you open the document manually? Is the script running under your username?&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 06:31:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vbscript-error-when-trying-to-reload-and-export/m-p/155208#M1310088</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-10-05T06:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Vbscript error when trying to reload and export</title>
      <link>https://community.qlik.com/t5/QlikView/Vbscript-error-when-trying-to-reload-and-export/m-p/155209#M1310090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did anyone ever figure this out? I am receiving Object Required... Once I restart PC it runs once fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="11-9-2014 1-08-27 PM.jpg" class="jive-image" src="/legacyfs/online/70879_11-9-2014 1-08-27 PM.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 18:23:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vbscript-error-when-trying-to-reload-and-export/m-p/155209#M1310090</guid>
      <dc:creator>james</dc:creator>
      <dc:date>2014-11-10T18:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Vbscript error when trying to reload and export</title>
      <link>https://community.qlik.com/t5/QlikView/Vbscript-error-when-trying-to-reload-and-export/m-p/155210#M1310092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Morning,&lt;/P&gt;&lt;P&gt;I am getting this same error in a VB script as well.&amp;nbsp; Is there a solution out there for this issue?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Craig Leite&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 14:10:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Vbscript-error-when-trying-to-reload-and-export/m-p/155210#M1310092</guid>
      <dc:creator>cleite2014</dc:creator>
      <dc:date>2017-06-05T14:10:30Z</dc:date>
    </item>
  </channel>
</rss>

