<?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: loop through tabs of an excel file (worksheet) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/loop-through-tabs-of-an-excel-file-worksheet/m-p/1707158#M54220</link>
    <description>&lt;P&gt;You could make use of the Excel odbc connector. xls-connector comes with windows, but xlsx do not. If you do not have it you can get it here:&amp;nbsp;&amp;nbsp;&lt;A href="https://www.microsoft.com/en-US/download/details.aspx?id=13255" target="_blank"&gt;https://www.microsoft.com/en-US/download/details.aspx?id=13255&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Then you just connect to your excel file using odbc and then call the SQLTABLE command to get the sheet names.&lt;/P&gt;&lt;P&gt;See sample code below.&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'Multi Sheet Excel ODBC Connector';&lt;BR /&gt;SQLTABLES:&lt;BR /&gt;SQLTABLES;&lt;/P&gt;&lt;P&gt;LOAD TABLE_NAME RESIDENT SQLTABLES;&lt;BR /&gt;TRACE&lt;BR /&gt;##START LOADING;&lt;BR /&gt;FOR each _tab in fieldvaluelist('TABLE_NAME')&lt;BR /&gt;TRACE&lt;BR /&gt;Load excelfile using tab='$(_tab)');&lt;BR /&gt;NEXT&lt;BR /&gt;TRACE&lt;BR /&gt;##STOP LOADING;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Jun 2020 14:29:43 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2020-06-01T14:29:43Z</dc:date>
    <item>
      <title>loop through tabs of an excel file (worksheet)</title>
      <link>https://community.qlik.com/t5/App-Development/loop-through-tabs-of-an-excel-file-worksheet/m-p/1707086#M54205</link>
      <description>&lt;P&gt;Hello is there a way to loop through worksheets of an excel file without using the Legacy Mode in QlikSense?&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 11:08:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/loop-through-tabs-of-an-excel-file-worksheet/m-p/1707086#M54205</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2020-06-01T11:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: loop through tabs of an excel file (worksheet)</title>
      <link>https://community.qlik.com/t5/App-Development/loop-through-tabs-of-an-excel-file-worksheet/m-p/1707158#M54220</link>
      <description>&lt;P&gt;You could make use of the Excel odbc connector. xls-connector comes with windows, but xlsx do not. If you do not have it you can get it here:&amp;nbsp;&amp;nbsp;&lt;A href="https://www.microsoft.com/en-US/download/details.aspx?id=13255" target="_blank"&gt;https://www.microsoft.com/en-US/download/details.aspx?id=13255&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Then you just connect to your excel file using odbc and then call the SQLTABLE command to get the sheet names.&lt;/P&gt;&lt;P&gt;See sample code below.&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'Multi Sheet Excel ODBC Connector';&lt;BR /&gt;SQLTABLES:&lt;BR /&gt;SQLTABLES;&lt;/P&gt;&lt;P&gt;LOAD TABLE_NAME RESIDENT SQLTABLES;&lt;BR /&gt;TRACE&lt;BR /&gt;##START LOADING;&lt;BR /&gt;FOR each _tab in fieldvaluelist('TABLE_NAME')&lt;BR /&gt;TRACE&lt;BR /&gt;Load excelfile using tab='$(_tab)');&lt;BR /&gt;NEXT&lt;BR /&gt;TRACE&lt;BR /&gt;##STOP LOADING;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 14:29:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/loop-through-tabs-of-an-excel-file-worksheet/m-p/1707158#M54220</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-06-01T14:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: loop through tabs of an excel file (worksheet)</title>
      <link>https://community.qlik.com/t5/App-Development/loop-through-tabs-of-an-excel-file-worksheet/m-p/1707165#M54222</link>
      <description>&lt;P&gt;Actually all the files are .xlsx&lt;BR /&gt;and I'm not connecting to one or two files, but rather I got a folder that has several sub-folders and each got several excel files&lt;/P&gt;&lt;P&gt;so your suggestion doesn't work for me&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 14:42:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/loop-through-tabs-of-an-excel-file-worksheet/m-p/1707165#M54222</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2020-06-01T14:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: loop through tabs of an excel file (worksheet)</title>
      <link>https://community.qlik.com/t5/App-Development/loop-through-tabs-of-an-excel-file-worksheet/m-p/1707366#M54255</link>
      <description>&lt;P&gt;Does the files look similar in regards to sheet names? If so then you could combine odbc and normal load.&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;/Use ODBC to find the sheet names
LIB CONNECT TO 'Multi Sheet Excel ODBC Connector';
SQLTABLES:
SQLTABLES;

LOAD TABLE_NAME RESIDENT SQLTABLES;
FOR each _tab in fieldvaluelist('TABLE_NAME')
   //Use normal folder lib to extract the data usin the sheet names found in SQLTABLES
    LOAD * FROM LIB:\\Excelpath\*.xlsx (oomlx, sheet=$(_tab))  //Loading using a folder LIB
NEXT

DROP TABLE SQLTABLES;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 02 Jun 2020 07:56:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/loop-through-tabs-of-an-excel-file-worksheet/m-p/1707366#M54255</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-06-02T07:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: loop through tabs of an excel file (worksheet)</title>
      <link>https://community.qlik.com/t5/App-Development/loop-through-tabs-of-an-excel-file-worksheet/m-p/1707409#M54259</link>
      <description>&lt;P&gt;let me download the excel connector and check it from my side then&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 10:23:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/loop-through-tabs-of-an-excel-file-worksheet/m-p/1707409#M54259</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2020-06-02T10:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: loop through tabs of an excel file (worksheet)</title>
      <link>https://community.qlik.com/t5/App-Development/loop-through-tabs-of-an-excel-file-worksheet/m-p/1707423#M54262</link>
      <description>&lt;P&gt;but not all excel files have the same number / name of sheets&lt;BR /&gt;I need to check on the existence of some sheet and if they exist I should read data from them&lt;BR /&gt;&lt;BR /&gt;so the excel connector is bound to a one Excel File&lt;/P&gt;&lt;P&gt;is there a way to use it dynamically I mean I pass to it the file name during script execution?!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 11:08:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/loop-through-tabs-of-an-excel-file-worksheet/m-p/1707423#M54262</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2020-06-02T11:08:50Z</dc:date>
    </item>
  </channel>
</rss>

