<?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: loading xls vs xlsx files in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/loading-xls-vs-xlsx-files/m-p/805975#M1044334</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A simple method to handle such uncertain file-extensions is to load these files in a loop through the folder per filelist and in a second step you used a variable for the file-format. This should be have the following main-logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for each vFile in filelist(YourFolder\FilePrefix_*.xls*)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vFileFormat = if(subfield('$(vFile)', '.', -1) = 'xls', 'biff ...', 'ooxml ...'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load * From '$(vFile)' '$(vFileFormat)'&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you searched for "for each ... " or filelist/dirlist you will find many examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Nov 2014 12:55:55 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2014-11-24T12:55:55Z</dc:date>
    <item>
      <title>loading xls vs xlsx files</title>
      <link>https://community.qlik.com/t5/QlikView/loading-xls-vs-xlsx-files/m-p/805969#M1044328</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 am facing an issue while loading xlsx files, I get an error saying "Cannot read from BIFF file".&lt;/P&gt;&lt;P&gt;However, when I save it as xls, it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I tried writing a macro which opens the excel files and replaces xlsx with xls. This did as it was supposed to do, however did not solve the issue as I still get the same error. Also, I will have to deploy the app on a server which will have it's own issues of running a macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been wondering about the relevance of this approach, as in the coming years, xls files might become irrelevant and outdated and as such saving files as a older file format shouldn't be the fix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to know, if there are any alternative ways to handle this and views on the above approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 10:27:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-xls-vs-xlsx-files/m-p/805969#M1044328</guid>
      <dc:creator />
      <dc:date>2014-11-24T10:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: loading xls vs xlsx files</title>
      <link>https://community.qlik.com/t5/QlikView/loading-xls-vs-xlsx-files/m-p/805970#M1044329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you load .xls files you need to use biff as file format. If you want to load .xlsx files then you need to use ooxml as file format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XLS:&lt;/P&gt;&lt;P&gt;LOAD FROM [myfile.xls]&lt;/P&gt;&lt;P&gt;(&lt;STRONG&gt;biff&lt;/STRONG&gt;, embedded labels, table is Sheet1$);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XLSX:&lt;/P&gt;&lt;P&gt;LOAD FROM [myfile.xlsx]&lt;/P&gt;&lt;P&gt;(&lt;STRONG&gt;ooxml&lt;/STRONG&gt;, embedded labels, table is Sheet1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 10:38:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-xls-vs-xlsx-files/m-p/805970#M1044329</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-11-24T10:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: loading xls vs xlsx files</title>
      <link>https://community.qlik.com/t5/QlikView/loading-xls-vs-xlsx-files/m-p/805971#M1044330</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;Check this &lt;A _jive_internal="true" href="https://community.qlik.com/thread/143259"&gt;http://community.qlik.com/thread/143259&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please donot create multiple threads for the same&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 10:54:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-xls-vs-xlsx-files/m-p/805971#M1044330</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-11-24T10:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: loading xls vs xlsx files</title>
      <link>https://community.qlik.com/t5/QlikView/loading-xls-vs-xlsx-files/m-p/805972#M1044331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As &lt;A href="https://community.qlik.com/qlik-users/96544"&gt;Gysbert Wassenaar&lt;/A&gt; says, the format for Xls and xlsx files differs with the BIFF and OOXML line.&lt;/P&gt;&lt;P&gt;If you are unsure whether users will be saving the file as xls or xlsx, the easiest option is to set your load script to load both formats and the auto-concatenation in QlikView will combine both sets of files into a single table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 10:58:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-xls-vs-xlsx-files/m-p/805972#M1044331</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-11-24T10:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: loading xls vs xlsx files</title>
      <link>https://community.qlik.com/t5/QlikView/loading-xls-vs-xlsx-files/m-p/805973#M1044332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi YB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just try like this insted of XLS or XLSM or XLSX just use XLS*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Harsha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 11:26:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-xls-vs-xlsx-files/m-p/805973#M1044332</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-24T11:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: loading xls vs xlsx files</title>
      <link>https://community.qlik.com/t5/QlikView/loading-xls-vs-xlsx-files/m-p/805974#M1044333</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 think your &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;xlsx file is password protected or can be read only.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and when you save it xls the protection removed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to save it in &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;xlsx but with different name. or check you are getting the same error or not.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 12:49:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-xls-vs-xlsx-files/m-p/805974#M1044333</guid>
      <dc:creator>ashwanin</dc:creator>
      <dc:date>2014-11-24T12:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: loading xls vs xlsx files</title>
      <link>https://community.qlik.com/t5/QlikView/loading-xls-vs-xlsx-files/m-p/805975#M1044334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A simple method to handle such uncertain file-extensions is to load these files in a loop through the folder per filelist and in a second step you used a variable for the file-format. This should be have the following main-logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for each vFile in filelist(YourFolder\FilePrefix_*.xls*)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vFileFormat = if(subfield('$(vFile)', '.', -1) = 'xls', 'biff ...', 'ooxml ...'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load * From '$(vFile)' '$(vFileFormat)'&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you searched for "for each ... " or filelist/dirlist you will find many examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 12:55:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-xls-vs-xlsx-files/m-p/805975#M1044334</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-11-24T12:55:55Z</dc:date>
    </item>
  </channel>
</rss>

