<?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 data from multiple worksheets in multiple Excel workbooks in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364764#M706030</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I am aware there is no 'Sheets' collection that you can enumerate around in spreadsheets.&amp;nbsp; As I mentioned above it is possible to get a list of sheets however by connecting to the Excel file with an ODBC connection. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Typically you would not connect to Excel with ODBC (as there is a native method), but it does give you a couple of extra commands.&amp;nbsp; The connection string will be something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OLEDB CONNECT32 TO [Provider=MSDASQL.1;Persist Security Info=False;Extended Properties="DSN=Excel Files;DBQ=$(vFileName);DriverId=1046;MaxBufferSize=2048;PageTimeout=5;"];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once connected you should be able to issue the following command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp_Tables:&lt;/P&gt;&lt;P&gt;sqltables;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will give you a list of sheets that can be enumerated around:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for iSheet = 0 to NoOfRows('Temp_Tables') - 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; let vSheetName = peek('TABLE_NAME', iSheet, 'Temp_Tables')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [... load data from sheet ...]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All of the above will need to sit in the loop that goes around the spreadsheets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order for the load * that you have in your code to work successfully you will need to ensure all sheets are in the exact same format - or some dodgy concatenation will occur.&amp;nbsp; If the sheets are all similar, but not the same, you will need to force concatenate - which you can either do by working out if you are on the first time through the loop or not (and only concatenate if you are not) or load a dummy row into a table to concatenate onto ahead of the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only having the headers on the first sheet may cause issues, as I doubt the sqltables command will allow you to see the order of the tabs.&amp;nbsp; In this case, I would suggest loading without embedded lablels on all sheets (which will mean you will need to alias A to s_no etc) and place a where statement on WHERE A &amp;lt;&amp;gt; 'sn_no'.&amp;nbsp; This should then remove the headers from the first sheets when they are encountered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully that gives you all the building bricks you need to put together a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you hit problems and you have some dummy data you can share in the format you are attempting to load, upload this in a zip file and I may be able to find time to build you a working example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;www.quickintelligence.co.uk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Sep 2012 20:02:40 GMT</pubDate>
    <dc:creator>stevedark</dc:creator>
    <dc:date>2012-09-12T20:02:40Z</dc:date>
    <item>
      <title>Load data from multiple worksheets in multiple Excel workbooks</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364756#M706022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have 50 workbooks - one for each customer - stored in "CustomerData" folder.&amp;nbsp; Workbooks can have 1 to 50 worksheets (one for each day with customer data.)&amp;nbsp; In each workbook, worksheets are named "1", "2", "3", etc. -- e.g. the first worksheet in workbook "A" is named "1" as is the first worksheet in workbook "B" -- worksheet names are not unique across workbooks.&amp;nbsp; For all worksheets, worksheet columns are identical - some have more rows (more records.)&lt;/P&gt;&lt;P&gt;With one load statement, I can load all of the worksheets named "1" from all the workbooks in "CustomerData."&amp;nbsp; What I want to do is load all the data from each worksheet in each workbook with one load statement if possible.&amp;nbsp; If needed, each worksheet contains a value for "CustomerName" and a value for "Date" which when combined are unique to that worksheet.&lt;/P&gt;&lt;P&gt;Any ideas on how to write the load statement or is this not possible?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2012 18:48:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364756#M706022</guid>
      <dc:creator />
      <dc:date>2012-04-23T18:48:00Z</dc:date>
    </item>
    <item>
      <title>Load data from multiple worksheets in multiple Excel workbooks</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364757#M706023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there - you will need to put a nested loop construct in place, firstly for each workbook in the folder and then for each sheet in the workbook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each workbook you will require code similar to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for each vFileName in FileList('.\*.xls')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then within that loop, you will need to loop for each sheet.&amp;nbsp; It is possible to get a list of all sheets in an Excel spreadsheet by connecting to it with an ODBC connection and calling the &lt;STRONG&gt;SQLTables &lt;/STRONG&gt;function.&amp;nbsp; But as you know the sheets are sequential from 1 that seems overboard.&amp;nbsp; I would probably put an extra sheet 0 on each workbook that contained a cell with the number of sheets.&amp;nbsp; The code would then be a bit like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Temp_Sheets:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sheets&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM $(vFileName)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(biff, embedded labels, header is 1 lines, table is [0$]);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;let vMaxSheet = peek('Sheets', -1, 'Temp_Sheets');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP TABLE Temp_Sheets;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for vSheetNo = 1 to $(vMaxSheet)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Data:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [... Field List ...]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM $(vFileName)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (biff, embedded labels, header is 1 lines, table is [$(vSheetNo)$])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;next&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously this does rely on the sheets being sequential from 1, otherwise the load will fall over.&amp;nbsp; In this case explore the SQLTables route.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.quickintelligence.co.uk/"&gt;http://www.quickintelligence.co.uk/&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2012 22:27:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364757#M706023</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2012-04-23T22:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from multiple worksheets in multiple Excel workbooks</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364758#M706024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Steve –this is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I get a rate quote from you for some upcoming project work.  We have one developer and he is about maxed out.  We need about 20 hours per week for 6 weeks, for an experienced developer – primarily load scripts and user interface for a server based QV app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2012 04:34:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364758#M706024</guid>
      <dc:creator />
      <dc:date>2012-04-24T04:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from multiple worksheets in multiple Excel workbooks</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364759#M706025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Certainly, please send your contact details via my website at &lt;A href="http://www.quickintelligence.co.uk/contact/"&gt;http://www.quickintelligence.co.uk/contact/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2012 06:29:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364759#M706025</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2012-04-24T06:29:17Z</dc:date>
    </item>
    <item>
      <title>Load data from multiple worksheets in multiple Excel workbooks</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364760#M706026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steve - several questions&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Will this work if the worksheerasa are named Daily1, Daily2, Daily2A, etc.?.&amp;nbsp; Does this added asaheet need to be the first worksheet in the workbook?&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; What sheet name do I give the extra worksheet I add to each workbook?&amp;nbsp; Can I name it "Sheet0"&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; For this added worksheet, in which cell do I put the count of worksheets in the workbook, and does this count include the added worksheet?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 14:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364760#M706026</guid>
      <dc:creator />
      <dc:date>2012-04-26T14:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from multiple worksheets in multiple Excel workbooks</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364761#M706027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Yes, you can prefix each sheet name with Daily, the code will change to be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;table is [Daily$(vSheetNo)$])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. You can call this sheet what you like, and it can appear where you like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. The count would be the number you would need to loop up to - so only the count of daily sheets.&amp;nbsp; You will need to load the value into a temporary table and then extract the value with a Peek statement.&amp;nbsp; This is not entirely straightforward - but you should be able to find how to do it on QlikCommunity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you come unstuck I may be able to post an example up here, if I get the chance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 16:55:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364761#M706027</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2012-04-26T16:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from multiple worksheets in multiple Excel workbooks</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364762#M706028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Steve for your quick response – this is really helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 16:58:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364762#M706028</guid>
      <dc:creator />
      <dc:date>2012-04-26T16:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from multiple worksheets in multiple Excel workbooks</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364763#M706029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do have a similar kind of challenge ,kindly help me out ..&lt;/P&gt;&lt;P&gt;well the challenge is &lt;/P&gt;&lt;P&gt;I have a folder in which i have the source files along with the qv file&lt;/P&gt;&lt;P&gt;and the source files are all xlsx&amp;nbsp; files &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Things to remembe are:&lt;/P&gt;&lt;P&gt;-Source files are not limited in number and may have different names but are all xlsx files&lt;/P&gt;&lt;P&gt;- source files may have no of worksheets and are not limited in number and may vary from book to book&lt;/P&gt;&lt;P&gt;-Name of every sheet in the every excel file is different &lt;/P&gt;&lt;P&gt;-In every source excel file only the 1st sheet will have the header and all other following sheets in that file will have no headers &lt;/P&gt;&lt;P&gt;- The no of rows filled are not confined to anylimit and may vary from sheet to sheet in the file&lt;/P&gt;&lt;P&gt;-the headers are similar in all the source files provided in the 1st sheet of every source file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result i need :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;based on the above conditions ,If i reload the qv by placing all the source files in the folder ,i need to the qv to be reloaded completely with the data in the source files&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for refernce the source files are as attached in the image &lt;IMG __jive_id="21731" class="jive-image" alt="sample1.jpg" src="https://community.qlik.com/legacyfs/online/21731_sample1.jpg" /&gt;&lt;IMG __jive_id="21732" class="jive-image" alt="sample2.jpg" src="https://community.qlik.com/legacyfs/online/21732_sample2.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code im trying in qlikview is as per the following&lt;/P&gt;&lt;P&gt;***********************************************************************************&lt;/P&gt;&lt;P&gt;for each vFileName in FileList('D:\Users\aju\Desktop\anand\*.xlsx');&lt;/P&gt;&lt;P&gt;for Each vSheet in $(vFileName)&lt;/P&gt;&lt;P&gt;Temp_Sheets:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt; S_no, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Roll no], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DOJ, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; marks&lt;/P&gt;&lt;P&gt;FROM $(vFileName)&lt;/P&gt;&lt;P&gt;(biff, embedded labels, header is 1 lines, table is $(vSheet));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vMaxSheet = peek('Sheets', -1, 'Temp_Sheets');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE Temp_Sheets;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for vSheetNo = 1 to $(vMaxSheet)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD*&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM $(vFileName)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (biff, embedded labels, header is 1 lines, table is $(vSheet));&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;****************************************************************************************************************&lt;/P&gt;&lt;P&gt;I request you help and resolve this challenge&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ahead !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 19:13:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364763#M706029</guid>
      <dc:creator />
      <dc:date>2012-09-12T19:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from multiple worksheets in multiple Excel workbooks</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364764#M706030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I am aware there is no 'Sheets' collection that you can enumerate around in spreadsheets.&amp;nbsp; As I mentioned above it is possible to get a list of sheets however by connecting to the Excel file with an ODBC connection. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Typically you would not connect to Excel with ODBC (as there is a native method), but it does give you a couple of extra commands.&amp;nbsp; The connection string will be something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OLEDB CONNECT32 TO [Provider=MSDASQL.1;Persist Security Info=False;Extended Properties="DSN=Excel Files;DBQ=$(vFileName);DriverId=1046;MaxBufferSize=2048;PageTimeout=5;"];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once connected you should be able to issue the following command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp_Tables:&lt;/P&gt;&lt;P&gt;sqltables;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will give you a list of sheets that can be enumerated around:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for iSheet = 0 to NoOfRows('Temp_Tables') - 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; let vSheetName = peek('TABLE_NAME', iSheet, 'Temp_Tables')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [... load data from sheet ...]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All of the above will need to sit in the loop that goes around the spreadsheets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order for the load * that you have in your code to work successfully you will need to ensure all sheets are in the exact same format - or some dodgy concatenation will occur.&amp;nbsp; If the sheets are all similar, but not the same, you will need to force concatenate - which you can either do by working out if you are on the first time through the loop or not (and only concatenate if you are not) or load a dummy row into a table to concatenate onto ahead of the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only having the headers on the first sheet may cause issues, as I doubt the sqltables command will allow you to see the order of the tabs.&amp;nbsp; In this case, I would suggest loading without embedded lablels on all sheets (which will mean you will need to alias A to s_no etc) and place a where statement on WHERE A &amp;lt;&amp;gt; 'sn_no'.&amp;nbsp; This should then remove the headers from the first sheets when they are encountered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully that gives you all the building bricks you need to put together a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you hit problems and you have some dummy data you can share in the format you are attempting to load, upload this in a zip file and I may be able to find time to build you a working example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;www.quickintelligence.co.uk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 20:02:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364764#M706030</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2012-09-12T20:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from multiple worksheets in multiple Excel workbooks</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364765#M706031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you please help me to get a worked out excersie of this issue from the sample attached for convenience.- &lt;/P&gt;&lt;P&gt;the headers are same in the 1st sheet of each and every source file so can go ahead with a load* in my case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;find the attached source files as described in the imgs above in the following direct post &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/258417#258417"&gt;http://community.qlik.com/message/258417#258417&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 04:07:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364765#M706031</guid>
      <dc:creator />
      <dc:date>2012-09-13T04:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from multiple worksheets in multiple Excel workbooks</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364766#M706032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Working example uploaded to &lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/258952"&gt;http://community.qlik.com/message/258952&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 21:04:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364766#M706032</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2012-09-13T21:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from multiple worksheets in multiple Excel workbooks</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364767#M706033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note also that you can load sheets by position, rather than name. &lt;/P&gt;&lt;P&gt;"...table is @n" &lt;/P&gt;&lt;P&gt;where n is 1,2, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 22:50:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364767#M706033</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-09-13T22:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from multiple worksheets in multiple Excel workbooks</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364768#M706034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob - thanks for that tip - I was not aware of that syntax.&amp;nbsp; Do you know if there a simple way of getting the number of tabs (without the OLEDB connection), as my document could be simplified if so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 23:37:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364768#M706034</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2012-09-13T23:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from multiple worksheets in multiple Excel workbooks</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364769#M706035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know of any other way to get the sheet count. But what I seen done is to asume a max number of sheets like 50, SET ErrorMode=0 and then just try from @1 to @50. Crude, but simple. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2012 22:24:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364769#M706035</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-09-14T22:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from multiple worksheets in multiple Excel workbooks</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364770#M706036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Should this method also work for .xlsx files as we seem to be having difficulties with files of this format?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 15:12:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364770#M706036</guid>
      <dc:creator>r3iuk</dc:creator>
      <dc:date>2013-09-27T15:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Load data from multiple worksheets in multiple Excel workbooks</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364771#M706037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I developed the following workaround so that I can use a numeric sequence with .xlsx spreadsheets:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;FOR vMonthNum = 1 to 12&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; Let vSheet = pick( vMonthNum, 'For Jan','For Feb','For Mar','For Apr','For May',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; 'For Jun','For Jul','For Aug','For Sep','For Oct','For Nov','For Dec');&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; Data:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;whatever&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; FROM [$(vSourceFile)]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; (ooxml, embedded labels, table is [$(vSheet)]);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;NEXT&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 11:25:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364771#M706037</guid>
      <dc:creator>r3iuk</dc:creator>
      <dc:date>2013-10-29T11:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from multiple worksheets in multiple Excel workbooks</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364772#M706038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's a good use of pick there to get the sheet names.&amp;nbsp; I like my approach of having the sheets listed on a meta data sheet in the spreadsheet (as per my previous response) as new sheets can be added without amending QlikView code.&amp;nbsp; This approach works fine as long as the sheet names are not going to change - and I doubt anyone is going to add a new month name any time soon!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 19:49:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-worksheets-in-multiple-Excel-workbooks/m-p/364772#M706038</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2013-10-29T19:49:15Z</dc:date>
    </item>
  </channel>
</rss>

