<?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 Excel export macro exporting same object in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Excel-export-macro-exporting-same-object/m-p/119550#M18402</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the below macro to export three different objects from my QlikView document. However, on completion of this macro, the &lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="color: #ff6600; text-decoration: underline;"&gt;contents in all three different excel files are the same&lt;/SPAN&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filenames are being created as defined in the macro but the content of all is that of one of the three objects exported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help or advise on why the macro is behaving in this manner and what can be done to resolve this is much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;sub ExportSalesOrder&lt;BR /&gt;&lt;BR /&gt; 'Get variable&lt;BR /&gt; set vExportFilePath = ActiveDocument.GetVariable("vExternalExportPath")&lt;BR /&gt; set vForDate = ActiveDocument.Variables("vProcessDate")&lt;BR /&gt; &lt;BR /&gt; 'Set variable&lt;BR /&gt; vDate = vForDate.GetContent.String&lt;BR /&gt; vExpPath = vExportFilePath.GetContent.String&lt;BR /&gt; &lt;BR /&gt; 'Export Summary&lt;BR /&gt; CSVFile1 = vExpPath &amp;amp; "\" &amp;amp; vDate &amp;amp; "_Summary.xls"&lt;BR /&gt; set obj1 = ActiveDocument.GetSheetObject("SUMMARY")&lt;BR /&gt; obj1.ExportEx CSVFile1, 5&lt;BR /&gt; &lt;BR /&gt; 'Export Sales&lt;BR /&gt; CSVFile2 = vExpPath &amp;amp; "\" &amp;amp; vDate &amp;amp; "_Sales.xls"&lt;BR /&gt; set obj2 = ActiveDocument.GetSheetObject("SALES")&lt;BR /&gt; obj2.ExportEx CSVFile2, 5&lt;BR /&gt; &lt;BR /&gt; 'Export Orders&lt;BR /&gt; CSVFile3 = vExpPath &amp;amp; "\" &amp;amp; vDate &amp;amp; "_Orders.xls"&lt;BR /&gt; set obj3 = ActiveDocument.GetSheetObject("ORDERS")&lt;BR /&gt; obj3.ExportEx CSVFile3, 5&lt;BR /&gt; &lt;BR /&gt; msgbox("Data exported to Excel files")&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="mso-bidi-language: AR-SA; mso-fareast-language: EN-US; color: blue; font-size: 9pt; mso-ansi-language: EN-US; mso-fareast-theme-font: minor-latin; font-family: 'Courier New'; mso-fareast-font-family: Calibri;"&gt;End&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt; &lt;/SPAN&gt;&lt;STRONG style="mso-bidi-language: AR-SA; mso-fareast-language: EN-US; color: blue; font-size: 9pt; mso-ansi-language: EN-US; mso-fareast-theme-font: minor-latin; font-family: 'Courier New'; mso-fareast-font-family: Calibri;"&gt;Sub &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Oct 2018 03:40:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-10-19T03:40:50Z</dc:date>
    <item>
      <title>Excel export macro exporting same object</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-export-macro-exporting-same-object/m-p/119550#M18402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the below macro to export three different objects from my QlikView document. However, on completion of this macro, the &lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="color: #ff6600; text-decoration: underline;"&gt;contents in all three different excel files are the same&lt;/SPAN&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filenames are being created as defined in the macro but the content of all is that of one of the three objects exported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help or advise on why the macro is behaving in this manner and what can be done to resolve this is much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;sub ExportSalesOrder&lt;BR /&gt;&lt;BR /&gt; 'Get variable&lt;BR /&gt; set vExportFilePath = ActiveDocument.GetVariable("vExternalExportPath")&lt;BR /&gt; set vForDate = ActiveDocument.Variables("vProcessDate")&lt;BR /&gt; &lt;BR /&gt; 'Set variable&lt;BR /&gt; vDate = vForDate.GetContent.String&lt;BR /&gt; vExpPath = vExportFilePath.GetContent.String&lt;BR /&gt; &lt;BR /&gt; 'Export Summary&lt;BR /&gt; CSVFile1 = vExpPath &amp;amp; "\" &amp;amp; vDate &amp;amp; "_Summary.xls"&lt;BR /&gt; set obj1 = ActiveDocument.GetSheetObject("SUMMARY")&lt;BR /&gt; obj1.ExportEx CSVFile1, 5&lt;BR /&gt; &lt;BR /&gt; 'Export Sales&lt;BR /&gt; CSVFile2 = vExpPath &amp;amp; "\" &amp;amp; vDate &amp;amp; "_Sales.xls"&lt;BR /&gt; set obj2 = ActiveDocument.GetSheetObject("SALES")&lt;BR /&gt; obj2.ExportEx CSVFile2, 5&lt;BR /&gt; &lt;BR /&gt; 'Export Orders&lt;BR /&gt; CSVFile3 = vExpPath &amp;amp; "\" &amp;amp; vDate &amp;amp; "_Orders.xls"&lt;BR /&gt; set obj3 = ActiveDocument.GetSheetObject("ORDERS")&lt;BR /&gt; obj3.ExportEx CSVFile3, 5&lt;BR /&gt; &lt;BR /&gt; msgbox("Data exported to Excel files")&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="mso-bidi-language: AR-SA; mso-fareast-language: EN-US; color: blue; font-size: 9pt; mso-ansi-language: EN-US; mso-fareast-theme-font: minor-latin; font-family: 'Courier New'; mso-fareast-font-family: Calibri;"&gt;End&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt; &lt;/SPAN&gt;&lt;STRONG style="mso-bidi-language: AR-SA; mso-fareast-language: EN-US; color: blue; font-size: 9pt; mso-ansi-language: EN-US; mso-fareast-theme-font: minor-latin; font-family: 'Courier New'; mso-fareast-font-family: Calibri;"&gt;Sub &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2018 03:40:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-export-macro-exporting-same-object/m-p/119550#M18402</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-19T03:40:50Z</dc:date>
    </item>
  </channel>
</rss>

