<?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 How to export multiple objects in one qvd or csv file on a button click? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-export-multiple-objects-in-one-qvd-or-csv-file-on-a/m-p/689955#M675669</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 two straight tables with different data, I want the user to be able to click on a button, which would then export those two tables into one qvd file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently it overwrites and stores only the last straight tables values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on this would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S: I am new to Qlik community, so let me know if you need anymore information on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the vb script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub ExportLocal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'-----TABLE 1 exports-----&lt;/P&gt;&lt;P&gt;&amp;nbsp; sFileNameP1_Data = filename&amp;amp; ".qvd"&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; set obj_per1 = ActiveDocument.GetSheetObject("CH01")&lt;/P&gt;&lt;P&gt;&amp;nbsp; obj_per1.ExportEX sFileNameP1_Data, 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'-----TABLE 2 exports----- &lt;/P&gt;&lt;P&gt;&amp;nbsp; set obj_per2 = ActiveDocument.GetSheetObject("CH02")&lt;/P&gt;&lt;P&gt;&amp;nbsp; obj_per2.ExportEX sFileNameP1_Data, 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ActiveDocument.GetApplication.WaitforIdle(1000)&lt;/P&gt;&lt;P&gt;&amp;nbsp; ActiveDocument.PartialReload&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Msgbox "Updated Forecasts Successfully"&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Jul 2014 13:44:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-01T13:44:29Z</dc:date>
    <item>
      <title>How to export multiple objects in one qvd or csv file on a button click?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-export-multiple-objects-in-one-qvd-or-csv-file-on-a/m-p/689955#M675669</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 two straight tables with different data, I want the user to be able to click on a button, which would then export those two tables into one qvd file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently it overwrites and stores only the last straight tables values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on this would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S: I am new to Qlik community, so let me know if you need anymore information on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the vb script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub ExportLocal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'-----TABLE 1 exports-----&lt;/P&gt;&lt;P&gt;&amp;nbsp; sFileNameP1_Data = filename&amp;amp; ".qvd"&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; set obj_per1 = ActiveDocument.GetSheetObject("CH01")&lt;/P&gt;&lt;P&gt;&amp;nbsp; obj_per1.ExportEX sFileNameP1_Data, 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'-----TABLE 2 exports----- &lt;/P&gt;&lt;P&gt;&amp;nbsp; set obj_per2 = ActiveDocument.GetSheetObject("CH02")&lt;/P&gt;&lt;P&gt;&amp;nbsp; obj_per2.ExportEX sFileNameP1_Data, 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ActiveDocument.GetApplication.WaitforIdle(1000)&lt;/P&gt;&lt;P&gt;&amp;nbsp; ActiveDocument.PartialReload&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Msgbox "Updated Forecasts Successfully"&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 13:44:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-export-multiple-objects-in-one-qvd-or-csv-file-on-a/m-p/689955#M675669</guid>
      <dc:creator />
      <dc:date>2014-07-01T13:44:29Z</dc:date>
    </item>
  </channel>
</rss>

