<?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 Loading from multiple Excel files and multiple sheets in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-from-multiple-Excel-files-and-multiple-sheets/m-p/372843#M704490</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 thread does indeed show how to load from multiple files, but in that scenario there is only one sheet with static name from which the data is loaded. In my scenario I have also multiple sheets, where the name of each is not known until runtime.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 May 2012 05:01:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-30T05:01:33Z</dc:date>
    <item>
      <title>Loading from multiple Excel files and multiple sheets</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-from-multiple-Excel-files-and-multiple-sheets/m-p/372841#M704488</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 need to load data from multiple Excel files which each contain multiple sheets. I need to filter files by name (eg. *_sys.xlsm) and sheets by names (eg. 'start with number and atleast 4 characters long')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to do this with Qlikview load scripts? As far as I can tell, looping through sheet names requires ODBC/OLE DB connection, and I'm not sure if those can be created in a loop (create the connection to each file in a loop).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I'm not sure if SQLTables selection works correctly with ODBC CONNECT32 ... Excel files. It always seems to be empty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 12:43:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-from-multiple-Excel-files-and-multiple-sheets/m-p/372841#M704488</guid>
      <dc:creator />
      <dc:date>2012-05-29T12:43:26Z</dc:date>
    </item>
    <item>
      <title>Loading from multiple Excel files and multiple sheets</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-from-multiple-Excel-files-and-multiple-sheets/m-p/372842#M704489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Hi, Check out the link&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://community.qlik.com/message/220535#220535"&gt;http://community.qlik.com/message/220535&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 13:01:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-from-multiple-Excel-files-and-multiple-sheets/m-p/372842#M704489</guid>
      <dc:creator>Siva_Sankar</dc:creator>
      <dc:date>2012-05-29T13:01:39Z</dc:date>
    </item>
    <item>
      <title>Loading from multiple Excel files and multiple sheets</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-from-multiple-Excel-files-and-multiple-sheets/m-p/372843#M704490</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 thread does indeed show how to load from multiple files, but in that scenario there is only one sheet with static name from which the data is loaded. In my scenario I have also multiple sheets, where the name of each is not known until runtime.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 05:01:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-from-multiple-Excel-files-and-multiple-sheets/m-p/372843#M704490</guid>
      <dc:creator />
      <dc:date>2012-05-30T05:01:33Z</dc:date>
    </item>
    <item>
      <title>Loading from multiple Excel files and multiple sheets</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-from-multiple-Excel-files-and-multiple-sheets/m-p/372844#M704491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example how to select sheet name from which to load &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Data1, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Data2, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataX,&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;C:\YourFileName.xlsm&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels,&lt;STRONG&gt; table is YourTableName&lt;/STRONG&gt;);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 08:48:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-from-multiple-Excel-files-and-multiple-sheets/m-p/372844#M704491</guid>
      <dc:creator />
      <dc:date>2012-05-30T08:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Loading from multiple Excel files and multiple sheets</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-from-multiple-Excel-files-and-multiple-sheets/m-p/372845#M704492</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;You can indeed use ODBC CONNECT 32 to load the table names using SQLTABLES, but I don't think you will be able to wildcard load, rather loop over the files using &lt;EM&gt;For Each vFile in FileList(vPath).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ForEach vFile in FileList('$(vPath)')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ODBC CONNECT32 To [Excel Files;DBQ=$(vFile)];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sheets:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQLTABLES;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DISCONNECT;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For i = 0 To NoOfRow('Sheets')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let zSheet = Peek('TABLE_NAME, i, 'Sheets');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ... do something with the file and sheet name, eg &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD ....&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From [$(vFile)]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (ooxml, no labels, table is [$(zSheet)]);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Next&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 09:38:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-from-multiple-Excel-files-and-multiple-sheets/m-p/372845#M704492</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-05-30T09:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Loading from multiple Excel files and multiple sheets</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-from-multiple-Excel-files-and-multiple-sheets/m-p/372846#M704493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, I forgot that you will need to Drop the Sheets table at the end of each loop, otherwise they will concatenate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 09:41:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-from-multiple-Excel-files-and-multiple-sheets/m-p/372846#M704493</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-05-30T09:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Loading from multiple Excel files and multiple sheets</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-from-multiple-Excel-files-and-multiple-sheets/m-p/372847#M704494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works like a charm &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In our case we don't have any ODBC datasources on our servers. You can use OLEDB with a tric:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13500345923407781" jivemacro_uid="_13500345923407781"&gt;&lt;P&gt;OLEDB CONNECT32 TO [Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data Source=$(vFile);Mode=Share Deny None;Extended Properties="Excel 8.0;HDR=Yes;IMEX=1";Jet OLEDB:System database="";Jet OLEDB:Registry Path="";Jet OLEDB:Database Password="";Jet OLEDB:Engine Type=35;Jet OLEDB:Database Locking Mode=0;Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Global Bulk Transactions=1;Jet OLEDB:New Database Password="";Jet OLEDB:Create System Database=False;Jet OLEDB:Encrypt Database=False;Jet OLEDB:Don't Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica Repair=False;Jet OLEDB:SFP=False];&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The extended properties property lets you connect to Excel files with the JET provider&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 09:36:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-from-multiple-Excel-files-and-multiple-sheets/m-p/372847#M704494</guid>
      <dc:creator />
      <dc:date>2012-10-12T09:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Loading from multiple Excel files and multiple sheets</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-from-multiple-Excel-files-and-multiple-sheets/m-p/372848#M704495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can't we connect without ODBC/OLEDB&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Satti&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 07:22:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-from-multiple-Excel-files-and-multiple-sheets/m-p/372848#M704495</guid>
      <dc:creator />
      <dc:date>2013-06-14T07:22:08Z</dc:date>
    </item>
  </channel>
</rss>

