<?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: Error in Pulling multiple excel sheets into QV when all headings are the same in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-in-Pulling-multiple-excel-sheets-into-QV-when-all-headings/m-p/561824#M1137342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 02 Nov 2013 12:03:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-02T12:03:28Z</dc:date>
    <item>
      <title>Error in Pulling multiple excel sheets into QV when all headings are the same</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Pulling-multiple-excel-sheets-into-QV-when-all-headings/m-p/561821#M1137339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to use your code but when I put 'XlsTables' after the ODBC connection then the 'SQLTables' instruction and it doesn't work. Do you know why this happens and what can I do to fix it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/416262"&gt;Re: Re: Pulling multiple excel sheets into QV when all headings are the same&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Nov 2013 10:49:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Pulling-multiple-excel-sheets-into-QV-when-all-headings/m-p/561821#M1137339</guid>
      <dc:creator />
      <dc:date>2013-11-02T10:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Pulling multiple excel sheets into QV when all headings are the same</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Pulling-multiple-excel-sheets-into-QV-when-all-headings/m-p/561822#M1137340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saeed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's easier to follow the active thread:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/95978"&gt;Pulling multiple excel sheets into QV when all headings are the same&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Nov 2013 11:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Pulling-multiple-excel-sheets-into-QV-when-all-headings/m-p/561822#M1137340</guid>
      <dc:creator>fred_s</dc:creator>
      <dc:date>2013-11-02T11:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Pulling multiple excel sheets into QV when all headings are the same</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Pulling-multiple-excel-sheets-into-QV-when-all-headings/m-p/561823#M1137341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saeed, &lt;/P&gt;&lt;P&gt;You've started a new discussion. &lt;BR /&gt;It's better to join the active thread with the same problem:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-thread-small" data-containerid="2003" data-containertype="14" data-objectid="95978" data-objecttype="1" href="http://community.qlik.com/thread/95978"&gt;http://community.qlik.com/thread/95978&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Nov 2013 11:58:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Pulling-multiple-excel-sheets-into-QV-when-all-headings/m-p/561823#M1137341</guid>
      <dc:creator>fred_s</dc:creator>
      <dc:date>2013-11-02T11:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Pulling multiple excel sheets into QV when all headings are the same</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Pulling-multiple-excel-sheets-into-QV-when-all-headings/m-p/561824#M1137342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Nov 2013 12:03:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Pulling-multiple-excel-sheets-into-QV-when-all-headings/m-p/561824#M1137342</guid>
      <dc:creator />
      <dc:date>2013-11-02T12:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Error in Pulling multiple excel sheets into QV when all headings are the same</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Pulling-multiple-excel-sheets-into-QV-when-all-headings/m-p/561825#M1137343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: left;"&gt;Yes, would be better to either keep to a single thread or at least reference the previous thread (as Fred then did).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your problem is that SQLTables might return the table names single quoted (I think because the names are numbers).&lt;/P&gt;&lt;P&gt;This breaks the current logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are sure that your table names don't have a dollar sign in it, you can do it like&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_13833942955344241 jive_macro_code" jivemacro_uid="_13833942955344241"&gt;
&lt;P&gt;ODBC CONNECT TO [Excel Files;DBQ=Y:\Inventory2.xlsx];&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;XlsTables:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;SQLTables;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DISCONNECT;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LET vRows = NoOfRows('XlsTables');&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;FOR i = 0 TO $(vRows)-1&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LET vSheetName = purgechar(peek('TABLE_NAME', i,'XlsTables'),'$');&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;$(vSheetName):&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;Store_no,&lt;/P&gt;
&lt;P&gt;Article,&lt;/P&gt;
&lt;P&gt;Kala_name,&lt;/P&gt;
&lt;P&gt;Inventory&lt;/P&gt;
&lt;P&gt;FROM &lt;Y&gt;&lt;/Y&gt;&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is $(vSheetName));&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;NEXT i&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP TABLE XlsTables;&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Nov 2013 12:11:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Pulling-multiple-excel-sheets-into-QV-when-all-headings/m-p/561825#M1137343</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-11-02T12:11:16Z</dc:date>
    </item>
  </channel>
</rss>

