<?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: Export to XLSX in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Export-to-XLSX/m-p/502515#M686032</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this one, it worked for me. Now it's saving the Excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub launchXL&lt;/P&gt;&lt;P&gt;set oXL=CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;oXL.visible=true&lt;/P&gt;&lt;P&gt;oXL.Workbooks.Add&lt;/P&gt;&lt;P&gt;aSheetObj=Array("CH1", "CH2")&lt;/P&gt;&lt;P&gt;for i=0 to UBound(aSheetObj)&lt;/P&gt;&lt;P&gt;&amp;nbsp; oXL.Sheets.Add&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set oSH = oXL.ActiveSheet&lt;/P&gt;&lt;P&gt;oSH.Range("A1").Select&amp;nbsp; &lt;/P&gt;&lt;P&gt;Set obj = ActiveDocument.GetSheetObject(aSheetObj(i))&lt;/P&gt;&lt;P&gt;&amp;nbsp; obj.CopyBitmapToClipboard&lt;/P&gt;&lt;P&gt;&amp;nbsp; oSH.Paste&lt;/P&gt;&lt;P&gt;&amp;nbsp; sCaption=obj.GetCaption.Name.v&lt;/P&gt;&lt;P&gt;&amp;nbsp; set obj=Nothing&lt;/P&gt;&lt;P&gt;&amp;nbsp; oSH.Rows("1:1").Select&lt;/P&gt;&lt;P&gt;&amp;nbsp; oXL.Selection.Font.Bold = True&lt;/P&gt;&lt;P&gt;&amp;nbsp; oSH.Cells.Select&lt;/P&gt;&lt;P&gt;&amp;nbsp; oXL.Selection.Columns.AutoFit&lt;/P&gt;&lt;P&gt;&amp;nbsp; oSH.Range("A1").Select&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; 'oSH.Name=left(sCaption,30)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; 'set oSH=Nothing&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;oSH.SaveAs "D:\temp.xlsx", 51&lt;/P&gt;&lt;P&gt;set oSH=Nothing&lt;/P&gt;&lt;P&gt;set oXL=Nothing&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm passing just charts, I didn't do the logic for tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tiago&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jan 2014 18:44:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-13T18:44:42Z</dc:date>
    <item>
      <title>Export to XLSX</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-XLSX/m-p/502509#M686026</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 the following routine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub export&lt;/P&gt;&lt;P&gt;set obj = ActiveDocument.GetSheetobject("TB01")&lt;/P&gt;&lt;P&gt;obj.exportbiff ("C:\Test.xlsx")&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then call this in a button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this exports the file correctly however I get an error when opening the file. excel says it is corrupted. Any ideas why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a simple routine to export a table to XLSX&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 16:48:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-XLSX/m-p/502509#M686026</guid>
      <dc:creator />
      <dc:date>2014-01-13T16:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Export to XLSX</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-XLSX/m-p/502510#M686027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this post: &lt;A href="https://community.qlik.com/message/306571"&gt;Re: QV to excel 2010?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 17:02:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-XLSX/m-p/502510#M686027</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-01-13T17:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Export to XLSX</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-XLSX/m-p/502511#M686028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that use the create object is the better option. Use the command &lt;SPAN style="font-size: 12.222222328186035px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000; background-color: #f8f8f8;"&gt;CreateObject(&lt;/SPAN&gt;&lt;SPAN class="string" style="font-size: 12.222222328186035px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: blue; background-color: #f8f8f8;"&gt;"Excel.Application"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.222222328186035px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000; background-color: #f8f8f8;"&gt;). Take a look at this related post below pls. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/80672"&gt;http://community.qlik.com/thread/80672&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tiago&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 17:04:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-XLSX/m-p/502511#M686028</guid>
      <dc:creator />
      <dc:date>2014-01-13T17:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Export to XLSX</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-XLSX/m-p/502512#M686029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a simpler version of this code?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 17:29:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-XLSX/m-p/502512#M686029</guid>
      <dc:creator />
      <dc:date>2014-01-13T17:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Export to XLSX</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-XLSX/m-p/502513#M686030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;The code below can be used to export more than one object to a excel file, take a look.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: arial, helvetica, sans-serif;"&gt;sub launchXL&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;set oXL=CreateObject("Excel.Application") &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;oXL.visible=True&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;oXL.Workbooks.Add&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: yellow; color: #000000; font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;aSheetObj=Array("TB01","CH01")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;for i=0 to UBound(aSheetObj)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp; oXL.Sheets.Add&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;&amp;nbsp; Set oSH = oXL.ActiveSheet&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: arial, helvetica, sans-serif;"&gt; oSH.Range("A1").Select&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt; Set obj = ActiveDocument.GetSheetObject(aSheetObj(i))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;&amp;nbsp; obj.CopyTableToClipboard True&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;&amp;nbsp; oSH.Paste &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;&amp;nbsp; sCaption=obj.GetCaption.Name.v&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp; set obj=Nothing&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;&amp;nbsp; oSH.Rows("1:1").Select&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp; oXL.Selection.Font.Bold = True&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;&amp;nbsp; oSH.Cells.Select&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;&amp;nbsp; oXL.Selection.Columns.AutoFit&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;&amp;nbsp; oSH.Range("A1").Select&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp; oSH.Name=left(sCaption,30)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp; set oSH=Nothing&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;next&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 12pt;"&gt;set oXL=Nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: arial, helvetica, sans-serif;"&gt;end sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You just have to adjust it by your necessity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more advanced options look at the link I've posted before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tiago&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 17:48:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-XLSX/m-p/502513#M686030</guid>
      <dc:creator />
      <dc:date>2014-01-13T17:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Export to XLSX</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-XLSX/m-p/502514#M686031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have amended it however it doesnt seem to work. where is the location to send the file to?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 17:58:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-XLSX/m-p/502514#M686031</guid>
      <dc:creator />
      <dc:date>2014-01-13T17:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Export to XLSX</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-XLSX/m-p/502515#M686032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this one, it worked for me. Now it's saving the Excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub launchXL&lt;/P&gt;&lt;P&gt;set oXL=CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;oXL.visible=true&lt;/P&gt;&lt;P&gt;oXL.Workbooks.Add&lt;/P&gt;&lt;P&gt;aSheetObj=Array("CH1", "CH2")&lt;/P&gt;&lt;P&gt;for i=0 to UBound(aSheetObj)&lt;/P&gt;&lt;P&gt;&amp;nbsp; oXL.Sheets.Add&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set oSH = oXL.ActiveSheet&lt;/P&gt;&lt;P&gt;oSH.Range("A1").Select&amp;nbsp; &lt;/P&gt;&lt;P&gt;Set obj = ActiveDocument.GetSheetObject(aSheetObj(i))&lt;/P&gt;&lt;P&gt;&amp;nbsp; obj.CopyBitmapToClipboard&lt;/P&gt;&lt;P&gt;&amp;nbsp; oSH.Paste&lt;/P&gt;&lt;P&gt;&amp;nbsp; sCaption=obj.GetCaption.Name.v&lt;/P&gt;&lt;P&gt;&amp;nbsp; set obj=Nothing&lt;/P&gt;&lt;P&gt;&amp;nbsp; oSH.Rows("1:1").Select&lt;/P&gt;&lt;P&gt;&amp;nbsp; oXL.Selection.Font.Bold = True&lt;/P&gt;&lt;P&gt;&amp;nbsp; oSH.Cells.Select&lt;/P&gt;&lt;P&gt;&amp;nbsp; oXL.Selection.Columns.AutoFit&lt;/P&gt;&lt;P&gt;&amp;nbsp; oSH.Range("A1").Select&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; 'oSH.Name=left(sCaption,30)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; 'set oSH=Nothing&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;oSH.SaveAs "D:\temp.xlsx", 51&lt;/P&gt;&lt;P&gt;set oSH=Nothing&lt;/P&gt;&lt;P&gt;set oXL=Nothing&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm passing just charts, I didn't do the logic for tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tiago&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 18:44:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-XLSX/m-p/502515#M686032</guid>
      <dc:creator />
      <dc:date>2014-01-13T18:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Export to XLSX</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-XLSX/m-p/502516#M686033</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;seems to fail at the line&lt;/P&gt;&lt;P&gt;set oXL=CreateObject("Excel.Application")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 18:50:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-XLSX/m-p/502516#M686033</guid>
      <dc:creator />
      <dc:date>2014-01-13T18:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Export to XLSX</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-XLSX/m-p/502517#M686034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to allow the System Access to execute this line. See the picture below.&lt;IMG alt="edit module.png" class="jive-image" src="/legacyfs/online/51423_edit module.png" style="width: 620px; height: 319px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 18:59:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-XLSX/m-p/502517#M686034</guid>
      <dc:creator />
      <dc:date>2014-01-13T18:59:36Z</dc:date>
    </item>
  </channel>
</rss>

