<?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: Use Macro to export excel in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-Macro-to-export-excel/m-p/676298#M245433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got it already, you need to define the file format as 56 for xls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wrkbook.SaveAs "C:\test.xls", 56&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jul 2014 02:36:25 GMT</pubDate>
    <dc:creator>laujerry</dc:creator>
    <dc:date>2014-07-30T02:36:25Z</dc:date>
    <item>
      <title>Use Macro to export excel</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Macro-to-export-excel/m-p/676297#M245432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to export objects to different excel sheet&lt;/P&gt;&lt;P&gt;I know there is an excellent from Stefan but I have not yet got an understanding&lt;/P&gt;&lt;P&gt;&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;QlikTip #32: Exporting multiple QV objects to a single Excel document&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So just want to ask about the following code&lt;/P&gt;&lt;P&gt;Why, if I replaced the SaveAs path with an xls extension, will the file fail to be recognized as a proper xls format?&lt;/P&gt;&lt;P&gt;Warning like "The file you are trying to open is in a different format than specified by the file extension..."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set xlobj = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;xlobj.DisplayAlerts = false&lt;/P&gt;&lt;P&gt;Set wrkbook = xlobj.Workbooks.Add&lt;/P&gt;&lt;P&gt;Set newwrksht = xlobj.Application.Worksheets.Add&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;wrkbook.SaveAs "C:\test.xls"&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 16:30:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Macro-to-export-excel/m-p/676297#M245432</guid>
      <dc:creator>laujerry</dc:creator>
      <dc:date>2014-07-29T16:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Use Macro to export excel</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Macro-to-export-excel/m-p/676298#M245433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got it already, you need to define the file format as 56 for xls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wrkbook.SaveAs "C:\test.xls", 56&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 02:36:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Macro-to-export-excel/m-p/676298#M245433</guid>
      <dc:creator>laujerry</dc:creator>
      <dc:date>2014-07-30T02:36:25Z</dc:date>
    </item>
  </channel>
</rss>

