<?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: Macro to create an Excel file - Problem if more than 65536 rows in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-to-create-an-Excel-file-Problem-if-more-than-65536-rows/m-p/490648#M183301</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The biff format .xls can only have 65536 rows per sheet. So if you save to .xls you're stuck with that limit. You can try specifying the ooxml format: &lt;/P&gt;&lt;P&gt;&lt;EM&gt;WB.SaveAs "c:\temp\"&amp;amp;strvPCT&amp;amp;" - A&amp;amp;C Data.&lt;STRONG&gt;xlsx&lt;/STRONG&gt;", &lt;STRONG&gt;51 &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's possible the .SendToExcel method also is limited to 65536 rows. In that case you can try increasing the easter egg setting &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;RowLimitForCsvInsteadOfXls. See &lt;A _jive_internal="true" href="https://community.qlik.com/message/320984#320984"&gt;here&lt;/A&gt; for how to do that. Maybe that helps. If not, you're probably limited to exporting to a .csv file instead of to .xlsx.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Aug 2013 07:05:17 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-08-14T07:05:17Z</dc:date>
    <item>
      <title>Macro to create an Excel file - Problem if more than 65536 rows</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-create-an-Excel-file-Problem-if-more-than-65536-rows/m-p/490647#M183300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sub ExportAnCTable()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim strvPCT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.Fields("Organisation").Select "Cumbria"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set vPCT = ActiveDocument.Fields("Responsible Organisation").GetPossibleValues&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strvPCT = vPCT.item(i).Text&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set objExcel = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objExcel.Visible = True&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objExcel.DisplayAlerts = False&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set chart = ActiveDocument.GetSheetObject ("CH109")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; chart.SendToExcel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set WB = objExcel.ActiveWorkbook&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WB.SaveAs "c:\temp\"&amp;amp;strvPCT&amp;amp;" - A&amp;amp;C Data.xls"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WB.Close&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objExcel.Quit&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; chart.Minimize&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.GetApplication.WaitForIdle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.ClearCache&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using this routine to generate a spreadsheet from a chart on the Qlikview form. It works fine so long as the number of rows in the spreadsheet generated is not greater than 65536. Can anyone advise me how to cater for the situation where there are more than this number. We are using Excel 2007 in our organisation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 21:24:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-create-an-Excel-file-Problem-if-more-than-65536-rows/m-p/490647#M183300</guid>
      <dc:creator />
      <dc:date>2013-08-13T21:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to create an Excel file - Problem if more than 65536 rows</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-create-an-Excel-file-Problem-if-more-than-65536-rows/m-p/490648#M183301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The biff format .xls can only have 65536 rows per sheet. So if you save to .xls you're stuck with that limit. You can try specifying the ooxml format: &lt;/P&gt;&lt;P&gt;&lt;EM&gt;WB.SaveAs "c:\temp\"&amp;amp;strvPCT&amp;amp;" - A&amp;amp;C Data.&lt;STRONG&gt;xlsx&lt;/STRONG&gt;", &lt;STRONG&gt;51 &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's possible the .SendToExcel method also is limited to 65536 rows. In that case you can try increasing the easter egg setting &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;RowLimitForCsvInsteadOfXls. See &lt;A _jive_internal="true" href="https://community.qlik.com/message/320984#320984"&gt;here&lt;/A&gt; for how to do that. Maybe that helps. If not, you're probably limited to exporting to a .csv file instead of to .xlsx.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 07:05:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-create-an-Excel-file-Problem-if-more-than-65536-rows/m-p/490648#M183301</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-08-14T07:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to create an Excel file - Problem if more than 65536 rows</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-create-an-Excel-file-Problem-if-more-than-65536-rows/m-p/490649#M183302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert&lt;/P&gt;&lt;P&gt;Thanks very much for your reply. I changed it to :&lt;/P&gt;&lt;P&gt;&lt;EM&gt;WB.SaveAs "c:\temp\"&amp;amp;strvPCT&amp;amp;" - A&amp;amp;C Data.&lt;STRONG&gt;xlsx&lt;/STRONG&gt;", &lt;STRONG&gt;51 &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it correctly produced &amp;gt; 90000 rows. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question : With the old version of the code (using an xls) it automatically set the sheetname to the filename whereas now that I am using an xlsx it generates the sheetname as &amp;lt;chart object id&amp;gt; and some numbers. Do you know how I can set the sheetname to be the same as the filename ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shirley&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 15:12:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-create-an-Excel-file-Problem-if-more-than-65536-rows/m-p/490649#M183302</guid>
      <dc:creator />
      <dc:date>2013-08-14T15:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to create an Excel file - Problem if more than 65536 rows</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-create-an-Excel-file-Problem-if-more-than-65536-rows/m-p/490650#M183303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no need macro..just put this configuration on settings.ini in qlikview server :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RowLimitForCsvInsteadOfXls=10000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change the value as u want..but as far as i know ms excel max sheets is only 255 sheets..so make sure you don't export more than 255 sheets..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2014 07:33:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-create-an-Excel-file-Problem-if-more-than-65536-rows/m-p/490650#M183303</guid>
      <dc:creator />
      <dc:date>2014-04-21T07:33:47Z</dc:date>
    </item>
  </channel>
</rss>

