<?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 sheets and Excel workbooks in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loop-sheets-and-Excel-workbooks/m-p/483423#M685690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Wassenaar. &lt;/P&gt;&lt;P&gt;I went through few threads in community and ended up with the solution. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jan 2014 17:14:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-08T17:14:15Z</dc:date>
    <item>
      <title>Loop sheets and Excel workbooks</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-sheets-and-Excel-workbooks/m-p/483421#M685688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to loop sheets and Excel workbooks. The data structure in all the sheets in all the workbooks is the same but each workbook has different number of sheets. I tried to use the below code and it works &lt;STRONG&gt;&lt;SPAN style="color: #800000;"&gt;when &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;excel workbooks has same number of sheets&lt;/SPAN&gt;&lt;/STRONG&gt; but &lt;STRONG style="color: #0000ff;"&gt;doesn't work if the number of sheets in each workbook are not the same&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&amp;nbsp; When Q_Excel1.xlsx has 4 sheets and Q_Excel2.xlsx has 5 sheets below code doesnt work but when Q_Excel1.xlsx has 4 sheets and Q_Excel2.xlsx has has 4 sheets it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC CONNECT TO [Excel Files;DBQ=C:\Desktop\Excel1.xlsx];&lt;/P&gt;&lt;P&gt;&amp;nbsp; tables:&lt;/P&gt;&lt;P&gt;&amp;nbsp; SQLTables;&lt;/P&gt;&lt;P&gt;&amp;nbsp; DISCONNECT;&lt;/P&gt;&lt;P&gt;&amp;nbsp; let var=NoOfRows('tables');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D, &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;X&gt;&lt;/X&gt;&lt;/P&gt;&lt;P&gt;(ooxml, no labels, header is 17 lines, table is '$(sheetName)');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; FOR j = 0 to $(var)-1&lt;/P&gt;&lt;P&gt;let sheetName=subfield(peek('TABLE_NAME', j,'tables'),'$',1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT j&lt;/P&gt;&lt;P&gt;DROP Table tables;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Koushik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2014 15:35:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-sheets-and-Excel-workbooks/m-p/483421#M685688</guid>
      <dc:creator />
      <dc:date>2014-01-08T15:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Loop sheets and Excel workbooks</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-sheets-and-Excel-workbooks/m-p/483422#M685689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this discussion: &lt;A href="https://community.qlik.com/message/223618"&gt;Loading from multiple Excel files and multiple sheets&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2014 15:44:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-sheets-and-Excel-workbooks/m-p/483422#M685689</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-01-08T15:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Loop sheets and Excel workbooks</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-sheets-and-Excel-workbooks/m-p/483423#M685690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Wassenaar. &lt;/P&gt;&lt;P&gt;I went through few threads in community and ended up with the solution. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2014 17:14:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-sheets-and-Excel-workbooks/m-p/483423#M685690</guid>
      <dc:creator />
      <dc:date>2014-01-08T17:14:15Z</dc:date>
    </item>
  </channel>
</rss>

