<?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 sheets of excel file(dynamic sheet count) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-sheets-of-excel-file-dynamic-sheet-count/m-p/826578#M666319</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may establish an ODBC-connection to the Excelfile.&lt;/P&gt;&lt;P&gt;The command SQLTABLES delivers i.a. all sheetnames.&lt;/P&gt;&lt;P&gt;With a loop you may read them one by one into a variable, which then will be used in the FROM-statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Dec 2014 21:34:13 GMT</pubDate>
    <dc:creator>prieper</dc:creator>
    <dc:date>2014-12-15T21:34:13Z</dc:date>
    <item>
      <title>Load data from multiple sheets of excel file(dynamic sheet count)</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-sheets-of-excel-file-dynamic-sheet-count/m-p/826573#M666314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We get a excel file generated from&amp;nbsp; BW source. Data populates in multiple sheets with the same structure(same columns in all sheets).&lt;/P&gt;&lt;P&gt;But Number of sheets will get varied every day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have to identify the number of sheets and load all the sheets data using for loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there any other way apart from ODBC&amp;nbsp; connection?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Chinna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 08:24:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-sheets-of-excel-file-dynamic-sheet-count/m-p/826573#M666314</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-15T08:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from multiple sheets of excel file(dynamic sheet count)</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-sheets-of-excel-file-dynamic-sheet-count/m-p/826574#M666315</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;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;If you are using xlsx then try like this, just remove the sheet name &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD *&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[test.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 08:55:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-sheets-of-excel-file-dynamic-sheet-count/m-p/826574#M666315</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-12-15T08:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from multiple sheets of excel file(dynamic sheet count)</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-sheets-of-excel-file-dynamic-sheet-count/m-p/826575#M666316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If all the sheet names are like 'Sheet' + a number, i.e. Sheet1, Sheet2, ..., Sheet then you can try something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14186340183305305" jivemacro_uid="_14186340183305305" modifiedtitle="true"&gt;
&lt;P&gt;set errormode = 0;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;for i= 1 to 255&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyExcelData:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD *&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM &lt;D&gt;&lt;/D&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (ooxml, embedded labels, Table is Sheet$(i) )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;next&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 09:00:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-sheets-of-excel-file-dynamic-sheet-count/m-p/826575#M666316</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-12-15T09:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from multiple sheets of excel file(dynamic sheet count)</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-sheets-of-excel-file-dynamic-sheet-count/m-p/826576#M666317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Thank you Gysbert. Unfortunately above solution will not work(if error mode not set to 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if we have any empty sheets/number of sheets are less than&amp;nbsp; 255. we will get field not found error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose if I have 5 sheets of data it will iterate till 255 times and it will give error all the time. I know we have to set error mode to ignore the error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way apart from odbc connection to determine the number of sheets in a excel sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Chinna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 11:31:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-sheets-of-excel-file-dynamic-sheet-count/m-p/826576#M666317</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-15T11:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from multiple sheets of excel file(dynamic sheet count)</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-sheets-of-excel-file-dynamic-sheet-count/m-p/826577#M666318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could read and check the sheets with a vbs-batch and stored them into a txt-file before you loaded these sheets into qv, maybe so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'-------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;'Content of ReadAndWriteExcelSheets.vbs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dim sourcepath, sourcefile, xls, ws, wsNames, fso, targetpath, targetfile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sourcepath = "D:\"&lt;BR /&gt;sourcefile = "Test.xls"&lt;BR /&gt;targetpath = "D:\"&lt;BR /&gt;targetfile = "SheetListing.txt"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set xls = createobject("Excel.Application")&lt;BR /&gt;xls.Workbooks.open sourcepath &amp;amp; sourcefile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wsNames = "WorkSheets" &amp;amp; chr(13) &amp;amp; chr(10)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for each ws in xls.worksheets&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ws.Range("A1").Value = "Belegnr. " then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wsNames = wsNames &amp;amp; ws.Name &amp;amp; chr(13) &amp;amp; chr(10)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end if&lt;BR /&gt;next&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;set fso = createobject("scripting.fileSystemobject")&lt;BR /&gt;set targetfile = fso.opentextfile(targetpath &amp;amp; targetfile, 2, true)&lt;BR /&gt;targetfile.write wsNames&lt;BR /&gt;targetfile.close&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xls.Application.Quit&lt;/P&gt;&lt;P&gt;'-------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vCSCRIPT = 'c:\windows\system32\cscript.exe';&lt;BR /&gt;EXECUTE $(vCSCRIPT) "D:\ReadAndWriteExcelSheets.vbs";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SheetList:&lt;/P&gt;&lt;P&gt;Load WorkSheets From D:\SheetListing.txt (ansi, txt, delimiter is '\t', embedded labels);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i = 1 to noofrows('SheetList')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; let vSheetName = peek('WorkSheets', $(i), 'SheetList')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xlsData:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load * From Test.xls &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: DE; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;(biff, embedded labels, Table is $(vSheetName)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: DE; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;next&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: DE; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: DE; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;But it should also work with odbc the if the xls will be handle like a database then it should be possible to query something like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: DE; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: DE; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Select * From tables;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: DE; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: DE; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;&lt;SPAN&gt;On the fast I haven't found this directly only ways per vba and ado - &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://support.microsoft.com/kb/257819" rel="nofollow"&gt;http://support.microsoft.com/kb/257819&lt;/A&gt;&lt;SPAN&gt; -&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;maybe someone else had here experience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 13:28:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-sheets-of-excel-file-dynamic-sheet-count/m-p/826577#M666318</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-12-15T13:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from multiple sheets of excel file(dynamic sheet count)</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-sheets-of-excel-file-dynamic-sheet-count/m-p/826578#M666319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may establish an ODBC-connection to the Excelfile.&lt;/P&gt;&lt;P&gt;The command SQLTABLES delivers i.a. all sheetnames.&lt;/P&gt;&lt;P&gt;With a loop you may read them one by one into a variable, which then will be used in the FROM-statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 21:34:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-sheets-of-excel-file-dynamic-sheet-count/m-p/826578#M666319</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2014-12-15T21:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from multiple sheets of excel file(dynamic sheet count)</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-sheets-of-excel-file-dynamic-sheet-count/m-p/826579#M666320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;from @rob wonderlich cookbook, i tried and it worked very well&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 21:44:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-sheets-of-excel-file-dynamic-sheet-count/m-p/826579#M666320</guid>
      <dc:creator>hectorgarcia</dc:creator>
      <dc:date>2014-12-15T21:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from multiple sheets of excel file(dynamic sheet count)</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-sheets-of-excel-file-dynamic-sheet-count/m-p/826580#M666321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Chinna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vSourceDataFile = '..\Data Files\Excel\';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SourceFileName:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;$(vSourceDataFile)*.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&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;Ishfaque Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 05:00:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-sheets-of-excel-file-dynamic-sheet-count/m-p/826580#M666321</guid>
      <dc:creator>engishfaque</dc:creator>
      <dc:date>2014-12-16T05:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from multiple sheets of excel file(dynamic sheet count)</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-sheets-of-excel-file-dynamic-sheet-count/m-p/826581#M666322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hector,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking for without ODBC connection. Many thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Chinna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 00:20:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-sheets-of-excel-file-dynamic-sheet-count/m-p/826581#M666322</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-17T00:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from multiple sheets of excel file(dynamic sheet count)</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-sheets-of-excel-file-dynamic-sheet-count/m-p/826582#M666323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is your script is compatible for xlsx?&lt;/P&gt;&lt;P&gt;Some how my sheet names are not being read with that vb script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA script , qvw and sample data for your reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me to get this work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Chinna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 00:42:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-sheets-of-excel-file-dynamic-sheet-count/m-p/826582#M666323</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-17T00:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from multiple sheets of excel file(dynamic sheet count)</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-sheets-of-excel-file-dynamic-sheet-count/m-p/826583#M666324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;XLS or XLSX isn't any difference for this kind of code. But you need some more adjustement for your case. Within the vbs is a short check-statement example on a certain content of a certain cell-value with the aim to check if a sheet is empty or contained the right data. You mentioned this in your post above. Adjust this or simply comment it out or remove it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;if ws.Range("A1").Value = "Belegnr. " then&lt;BR /&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further have a look on the user-properties for security. There are options to allow the execution-statement and if you want run it through the server those user-account needed also these permission and access rights on the filesystem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I suggest check it in steps - first manually the excution from the vbs-batch and then the other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 08:20:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-sheets-of-excel-file-dynamic-sheet-count/m-p/826583#M666324</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-12-17T08:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from multiple sheets of excel file(dynamic sheet count)</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-sheets-of-excel-file-dynamic-sheet-count/m-p/826584#M666325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chinna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try this macro to count the excel sheets without using ODBC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub CountExcelSheetNo()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'Create Excel Object&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set ExcelObject = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'Give the excel file&lt;/P&gt;&lt;P&gt;&amp;nbsp; ExcelFile="D:\test.xlsx"&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'Open the workbook&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set OpenWorkBook = ExcelObject.Workbooks.Open(ExcelFile)&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'Hide the opened file&lt;/P&gt;&lt;P&gt;&amp;nbsp; ExcelObject.Visible = False&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'count the number of workbook sheets&lt;/P&gt;&lt;P&gt;&amp;nbsp; msgbox(ExcelObject.worksheets.Count)&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'Store it into a variable&lt;/P&gt;&lt;P&gt;&amp;nbsp; set NoSheets = ActiveDocument.Variables("NoSheets")&lt;/P&gt;&lt;P&gt;&amp;nbsp; NoSheets.SetContent ExcelObject.worksheets.Count, true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 11:38:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-multiple-sheets-of-excel-file-dynamic-sheet-count/m-p/826584#M666325</guid>
      <dc:creator />
      <dc:date>2015-01-05T11:38:47Z</dc:date>
    </item>
  </channel>
</rss>

