<?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:REload when the QV File opens, Export to Excel and close again in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/REload-when-the-QV-File-opens-Export-to-Excel-and-close-again/m-p/177377#M715267</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pol&lt;/P&gt;&lt;P&gt;I am using QV9 personal edition and so I cannoty open your file. However I did open it on another computer in QV 8 and the problem is in QV9 Personal, I dont get the lisyt of marcos to run&lt;/P&gt;&lt;P&gt;:o(&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Sep 2009 19:24:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-09-07T19:24:42Z</dc:date>
    <item>
      <title>REload when the QV File opens, Export to Excel and close again</title>
      <link>https://community.qlik.com/t5/QlikView/REload-when-the-QV-File-opens-Export-to-Excel-and-close-again/m-p/177371#M715261</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 have Microsoft scheduler happily opening my Qv document every 15 minutes&lt;/P&gt;&lt;P&gt;All I want now is a macro to to reload the data, export a table from one of the sheets into excel , and then close down the file&lt;/P&gt;&lt;P&gt;I am using QV9, and I guess I create the macro in "Tools &amp;gt; Edit Module"&lt;/P&gt;&lt;P&gt;Something like...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;sub&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;msgbox&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;End&lt;/B&gt; &lt;B&gt;sub&lt;/B&gt;&lt;/P&gt;"pause" CopySendToExcel &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;But I cannot seem to link this to the document properties event trigger "on open"&lt;/P&gt;&lt;P&gt;This of course is only a portion of the problem as I still want to reload when I open the data before I export to excel!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help please!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2009 16:10:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/REload-when-the-QV-File-opens-Export-to-Excel-and-close-again/m-p/177371#M715261</guid>
      <dc:creator />
      <dc:date>2009-09-07T16:10:57Z</dc:date>
    </item>
    <item>
      <title>REload when the QV File opens, Export to Excel and close again</title>
      <link>https://community.qlik.com/t5/QlikView/REload-when-the-QV-File-opens-Export-to-Excel-and-close-again/m-p/177372#M715262</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 would suggest that you set your macro to run on reload. Then you can perform a reload with the syntax below.&lt;/P&gt;&lt;P&gt;"C:\Program Files\QlikView\qv.exe" /l /NoSecurity "D:\QV_apps\qvapplication.qvw"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;br&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2009 17:01:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/REload-when-the-QV-File-opens-Export-to-Excel-and-close-again/m-p/177372#M715262</guid>
      <dc:creator />
      <dc:date>2009-09-07T17:01:05Z</dc:date>
    </item>
    <item>
      <title>REload when the QV File opens, Export to Excel and close again</title>
      <link>https://community.qlik.com/t5/QlikView/REload-when-the-QV-File-opens-Export-to-Excel-and-close-again/m-p/177373#M715263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG&gt;khetienne&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;sub Reload&lt;BR /&gt;&lt;BR /&gt; activedocument.reload&lt;BR /&gt;&lt;BR /&gt;end sub&lt;BR /&gt;sub ExportExcel&lt;BR /&gt;&lt;BR /&gt; set obj = ActiveDocument.GetSheetObject("TB03")&lt;BR /&gt; obj.ExportBiff"C:\Exports\Informes\InformeComercial"&amp;amp;"_"&amp;amp;NomCliente&amp;amp;"_"&amp;amp;day(now())&amp;amp;"_"&amp;amp;month(now())&amp;amp;"_"&amp;amp;year(now())&amp;amp;".xls"&lt;BR /&gt;&lt;BR /&gt;end sub&lt;BR /&gt;sub Close&lt;BR /&gt;&lt;BR /&gt; set App = ActiveDocument.GetApplication&lt;BR /&gt; Rem ** open new document and activate it **&lt;BR /&gt; set newdoc = App.OpenDoc("C:\ExportXLS.qvw","","")&lt;BR /&gt; Rem ** back to ActiveDocument (= document running macro) **&lt;BR /&gt; ActiveDocument.Activate&lt;BR /&gt; Rem ** close new document again **&lt;BR /&gt; newdoc.CloseDoc&lt;BR /&gt;&lt;BR /&gt;end sub&lt;BR /&gt;&lt;BR /&gt;' Execute all the process&lt;BR /&gt;&lt;BR /&gt;sub Allprocess&lt;BR /&gt;&lt;BR /&gt; Reload&lt;BR /&gt; ExportExcel&lt;BR /&gt; Close&lt;BR /&gt;&lt;BR /&gt;end sub&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;In the menu Settings, Document Properties, Macros, Document Event Triggers (OnOpen), Macro (Allprocess)&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2009 17:15:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/REload-when-the-QV-File-opens-Export-to-Excel-and-close-again/m-p/177373#M715263</guid>
      <dc:creator />
      <dc:date>2009-09-07T17:15:15Z</dc:date>
    </item>
    <item>
      <title>Re:REload when the QV File opens, Export to Excel and close again</title>
      <link>https://community.qlik.com/t5/QlikView/REload-when-the-QV-File-opens-Export-to-Excel-and-close-again/m-p/177374#M715264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, Great stuff! I now have a batch file taht I can execute that runs the script&lt;/P&gt;&lt;P&gt;I also have a macro that exports the table into excel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I woudl like to do now is to run the macro! from the script preferably or post load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But&lt;/P&gt;&lt;P&gt;My program does not seem to be able to find the macro...!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2009 17:53:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/REload-when-the-QV-File-opens-Export-to-Excel-and-close-again/m-p/177374#M715264</guid>
      <dc:creator />
      <dc:date>2009-09-07T17:53:22Z</dc:date>
    </item>
    <item>
      <title>Re:REload when the QV File opens, Export to Excel and close again</title>
      <link>https://community.qlik.com/t5/QlikView/REload-when-the-QV-File-opens-Export-to-Excel-and-close-again/m-p/177375#M715265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your test with this document that I attach.&lt;BR /&gt;&lt;BR /&gt;To comment that on having closed it automatically, you will not be able to open it to edit... Better to have one with the option to close, and other one without.&lt;BR /&gt;&lt;BR /&gt;I have added a line to save the document once reloaded.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2009 18:21:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/REload-when-the-QV-File-opens-Export-to-Excel-and-close-again/m-p/177375#M715265</guid>
      <dc:creator />
      <dc:date>2009-09-07T18:21:13Z</dc:date>
    </item>
    <item>
      <title>REload when the QV File opens, Export to Excel and close again</title>
      <link>https://community.qlik.com/t5/QlikView/REload-when-the-QV-File-opens-Export-to-Excel-and-close-again/m-p/177376#M715266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin&lt;/P&gt;&lt;P&gt;Ok, the batch opens teh qv file and reloads the data&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":monkey_face:"&gt;🐵&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But&lt;/P&gt;&lt;P&gt;:o(&lt;/P&gt;&lt;P&gt;QV.exe stays open, as does the cmd window - neither of which is what I woudl like to happen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anty thoughts on next steps?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2009 19:10:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/REload-when-the-QV-File-opens-Export-to-Excel-and-close-again/m-p/177376#M715266</guid>
      <dc:creator />
      <dc:date>2009-09-07T19:10:07Z</dc:date>
    </item>
    <item>
      <title>Re:REload when the QV File opens, Export to Excel and close again</title>
      <link>https://community.qlik.com/t5/QlikView/REload-when-the-QV-File-opens-Export-to-Excel-and-close-again/m-p/177377#M715267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pol&lt;/P&gt;&lt;P&gt;I am using QV9 personal edition and so I cannoty open your file. However I did open it on another computer in QV 8 and the problem is in QV9 Personal, I dont get the lisyt of marcos to run&lt;/P&gt;&lt;P&gt;:o(&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2009 19:24:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/REload-when-the-QV-File-opens-Export-to-Excel-and-close-again/m-p/177377#M715267</guid>
      <dc:creator />
      <dc:date>2009-09-07T19:24:42Z</dc:date>
    </item>
    <item>
      <title>Re:REload when the QV File opens, Export to Excel and close again</title>
      <link>https://community.qlik.com/t5/QlikView/REload-when-the-QV-File-opens-Export-to-Excel-and-close-again/m-p/177378#M715268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry...&lt;/P&gt;&lt;P&gt;Add this at the end of your macro... This will save your document and afterwards close the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.Save&lt;BR /&gt; ActiveDocument.GetApplication.Quit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;br&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2009 19:27:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/REload-when-the-QV-File-opens-Export-to-Excel-and-close-again/m-p/177378#M715268</guid>
      <dc:creator />
      <dc:date>2009-09-07T19:27:14Z</dc:date>
    </item>
    <item>
      <title>Re:REload when the QV File opens, Export to Excel and close again</title>
      <link>https://community.qlik.com/t5/QlikView/REload-when-the-QV-File-opens-Export-to-Excel-and-close-again/m-p/177379#M715269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pol&lt;/P&gt;&lt;P&gt;is there a sheet select proprty also? i have multiple sheets and your command will not work unlre#ess I have the right sheet selkected&lt;/P&gt;&lt;P&gt;"set obj = ActiveDocument.GetSheetObject("TB03")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2009 19:54:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/REload-when-the-QV-File-opens-Export-to-Excel-and-close-again/m-p/177379#M715269</guid>
      <dc:creator />
      <dc:date>2009-09-07T19:54:52Z</dc:date>
    </item>
    <item>
      <title>Re:REload when the QV File opens, Export to Excel and close again</title>
      <link>https://community.qlik.com/t5/QlikView/REload-when-the-QV-File-opens-Export-to-Excel-and-close-again/m-p/177380#M715270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;khetienne wrote:&lt;BR /&gt;Hi Pol&lt;BR /&gt;is there a sheet select proprty also? i have multiple sheets and your command will not work unlre#ess I have the right sheet selkected&lt;BR /&gt;"set obj = ActiveDocument.GetSheetObject("TB03")&amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;CODE&gt;ActiveDocument.Sheets("TB03").Activate&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;or with your code&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;CODE&gt;set obj = ActiveDocument.GetSheetObject("TB03")&lt;BR /&gt;obj.Activate&lt;/CODE&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 05:09:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/REload-when-the-QV-File-opens-Export-to-Excel-and-close-again/m-p/177380#M715270</guid>
      <dc:creator />
      <dc:date>2009-09-08T05:09:21Z</dc:date>
    </item>
  </channel>
</rss>

