<?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: Load an Excel file with variable worksheet name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-an-Excel-file-with-variable-worksheet-name/m-p/675692#M668749</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, in the example I linked first a table named &lt;EM&gt;tables&lt;/EM&gt; is created and loaded with the data returned by the SQLtables command. Next a for-next loop is iterating through this table. In that loop you can check the sheet name you get from the &lt;EM&gt;tables&amp;nbsp; &lt;/EM&gt;table with a wildmatch:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;LET sheetName = purgeChar(peek('TABLE_NAME', i, 'tables'), chr(39));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if(wildmatch($(sheetName), '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;owssvr&lt;/SPAN&gt;*') then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt; ...load the data&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Oct 2014 09:19:00 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2014-10-22T09:19:00Z</dc:date>
    <item>
      <title>Load an Excel file with variable worksheet name</title>
      <link>https://community.qlik.com/t5/QlikView/Load-an-Excel-file-with-variable-worksheet-name/m-p/675688#M668740</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;how do I load a table from an Excel_file if I know the file_name, but not the sheet_name - it is usually "owssvr", but it might be "owssvr (1)" - I don't know the reason. I'm trying to keep the manual effort to a minimum so that the person fetching those files - there are six, my code runs as a loop over them all - doesn't have to manually rename that.&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 08:43:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-an-Excel-file-with-variable-worksheet-name/m-p/675688#M668740</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-10-22T08:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Load an Excel file with variable worksheet name</title>
      <link>https://community.qlik.com/t5/QlikView/Load-an-Excel-file-with-variable-worksheet-name/m-p/675689#M668743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is simply loading all the sheets from the excel file an option? &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/163862"&gt;load all the sheets from  XLSX&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If not, you could check the sheet name and decide on the basis of the sheet name to load it or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 08:51:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-an-Excel-file-with-variable-worksheet-name/m-p/675689#M668743</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-10-22T08:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Load an Excel file with variable worksheet name</title>
      <link>https://community.qlik.com/t5/QlikView/Load-an-Excel-file-with-variable-worksheet-name/m-p/675690#M668746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, I guess that would be an option since the files are exported by someone here on site and so every file has only one sheet.&lt;/P&gt;&lt;P&gt;Alternatively, how could I check the sheet_name? That's what I was just trying to do, but I don't know any function that would do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 09:12:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-an-Excel-file-with-variable-worksheet-name/m-p/675690#M668746</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-10-22T09:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Load an Excel file with variable worksheet name</title>
      <link>https://community.qlik.com/t5/QlikView/Load-an-Excel-file-with-variable-worksheet-name/m-p/675691#M668747</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;that sheet shows quite a complicated solution with a Connect_string and stuff - I have just noticed it can be done much easier: By just omitting the table_specification in the LOAD_statement, QlikView just loads whatever is there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 09:18:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-an-Excel-file-with-variable-worksheet-name/m-p/675691#M668747</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-10-22T09:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Load an Excel file with variable worksheet name</title>
      <link>https://community.qlik.com/t5/QlikView/Load-an-Excel-file-with-variable-worksheet-name/m-p/675692#M668749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, in the example I linked first a table named &lt;EM&gt;tables&lt;/EM&gt; is created and loaded with the data returned by the SQLtables command. Next a for-next loop is iterating through this table. In that loop you can check the sheet name you get from the &lt;EM&gt;tables&amp;nbsp; &lt;/EM&gt;table with a wildmatch:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;LET sheetName = purgeChar(peek('TABLE_NAME', i, 'tables'), chr(39));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if(wildmatch($(sheetName), '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;owssvr&lt;/SPAN&gt;*') then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt; ...load the data&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 09:19:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-an-Excel-file-with-variable-worksheet-name/m-p/675692#M668749</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-10-22T09:19:00Z</dc:date>
    </item>
  </channel>
</rss>

