<?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 export to excel two sheets in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/export-to-excel-two-sheets/m-p/980617#M967926</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a container that contains two tables : CH10001 and CH10002&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with the following code I can export CH10001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub xport2xl()&lt;/P&gt;&lt;P&gt;iRow = 1&lt;/P&gt;&lt;P&gt;set xlApp = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;xlApp.Visible = True&lt;/P&gt;&lt;P&gt;set xlWB = xlApp.Workbooks.Add&lt;/P&gt;&lt;P&gt;set xlSheet = xlWB.Worksheets(1)&lt;/P&gt;&lt;P&gt;set obj = ActiveDocument.getsheetobject(ChartName)&lt;/P&gt;&lt;P&gt;xlSheet.Activate&lt;/P&gt;&lt;P&gt;xlSheet.Cells.Clear&lt;/P&gt;&lt;P&gt;while not (isempty(xlSheet.Cells(iRow,1)))&lt;/P&gt;&lt;P&gt;iRow = iRow+2&lt;/P&gt;&lt;P&gt;wend&lt;/P&gt;&lt;P&gt;set txt1 = ActiveDocument.GetSheetObject("CH10001")&lt;/P&gt;&lt;P&gt;txt1.CopytableToClipboard TRUE&lt;/P&gt;&lt;P&gt;xlSheet.Cells(iRow,1).Select&lt;/P&gt;&lt;P&gt;xlSheet.Paste&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I export &lt;SPAN style="font-size: 13.3333px;"&gt;CH10001 and CH10002 in the same workbook but with dynamic sheet name ? add the getdate in the name of the sheet for example ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Sep 2015 14:27:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-09-18T14:27:04Z</dc:date>
    <item>
      <title>export to excel two sheets</title>
      <link>https://community.qlik.com/t5/QlikView/export-to-excel-two-sheets/m-p/980617#M967926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a container that contains two tables : CH10001 and CH10002&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with the following code I can export CH10001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub xport2xl()&lt;/P&gt;&lt;P&gt;iRow = 1&lt;/P&gt;&lt;P&gt;set xlApp = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;xlApp.Visible = True&lt;/P&gt;&lt;P&gt;set xlWB = xlApp.Workbooks.Add&lt;/P&gt;&lt;P&gt;set xlSheet = xlWB.Worksheets(1)&lt;/P&gt;&lt;P&gt;set obj = ActiveDocument.getsheetobject(ChartName)&lt;/P&gt;&lt;P&gt;xlSheet.Activate&lt;/P&gt;&lt;P&gt;xlSheet.Cells.Clear&lt;/P&gt;&lt;P&gt;while not (isempty(xlSheet.Cells(iRow,1)))&lt;/P&gt;&lt;P&gt;iRow = iRow+2&lt;/P&gt;&lt;P&gt;wend&lt;/P&gt;&lt;P&gt;set txt1 = ActiveDocument.GetSheetObject("CH10001")&lt;/P&gt;&lt;P&gt;txt1.CopytableToClipboard TRUE&lt;/P&gt;&lt;P&gt;xlSheet.Cells(iRow,1).Select&lt;/P&gt;&lt;P&gt;xlSheet.Paste&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I export &lt;SPAN style="font-size: 13.3333px;"&gt;CH10001 and CH10002 in the same workbook but with dynamic sheet name ? add the getdate in the name of the sheet for example ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 14:27:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/export-to-excel-two-sheets/m-p/980617#M967926</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-18T14:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: export to excel two sheets</title>
      <link>https://community.qlik.com/t5/QlikView/export-to-excel-two-sheets/m-p/980618#M967928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this blog post: &lt;A href="http://www.qlikblog.at/971/qliktip-32-exporting-multiple-objects-single-excel-document/" title="http://www.qlikblog.at/971/qliktip-32-exporting-multiple-objects-single-excel-document/"&gt;http://www.qlikblog.at/971/qliktip-32-exporting-multiple-objects-single-excel-document/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 17:15:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/export-to-excel-two-sheets/m-p/980618#M967928</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-09-18T17:15:06Z</dc:date>
    </item>
  </channel>
</rss>

