<?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 Extract the multiple excel files with different sheetnames and different hearders in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Extract-the-multiple-excel-files-with-different-sheetnames-and/m-p/129381#M19529</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I need to extract the multiple excel file with different sheetNames and different headers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #ff0000;"&gt;Excel 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Headers1,&lt;SPAN style="font-size: 13.3333px;"&gt;Headers2,&lt;SPAN style="font-size: 13.3333px;"&gt;Headers3,&lt;SPAN style="font-size: 13.3333px;"&gt;Headers4,&lt;SPAN style="font-size: 13.3333px;"&gt;Headers5 and sheetnames is &lt;STRONG&gt;Sheet1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;Excel 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Headers1,&lt;SPAN style="font-size: 13.3333px;"&gt;Headers2,&lt;SPAN style="font-size: 13.3333px;"&gt;Headers3,&lt;SPAN style="font-size: 13.3333px;"&gt;Headers4,&lt;SPAN style="font-size: 13.3333px;"&gt;Headers5 and sheetnames is &lt;STRONG&gt;Sheet1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style="color: #ff0000;"&gt;Excel 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Headers1,&lt;SPAN style="font-size: 13.3333px;"&gt;Headers3&lt;SPAN style="font-size: 13.3333px;"&gt;,&lt;SPAN style="font-size: 13.3333px;"&gt;Headers5 and sheetnames is &lt;STRONG&gt;Data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;Excel 4&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Headers1,&lt;SPAN style="font-size: 13.3333px;"&gt;Headers2,&lt;SPAN style="font-size: 13.3333px;"&gt;Headers3,&lt;SPAN style="font-size: 13.3333px;"&gt;Headers4,&lt;SPAN style="font-size: 13.3333px;"&gt;Headers5 and sheetnames is &lt;STRONG&gt;Sheet1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For the above scenario Excel 1, &lt;SPAN style="font-size: 13.3333px;"&gt;Excel 2 and &lt;SPAN style="font-size: 13.3333px;"&gt;Excel 4, H&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;eaders names and sheetNames are same&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;But Excel 3 doesn't have same headers and sheetName. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am struck with the below code it is not executable please suggest me,&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vPath = '.C:\Users\Pol\Desktop\Data\Xlsx';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for each vFile in FileList('$(vPath2)\*.Xlsx')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TableName:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; load&amp;nbsp; *,&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vFile)' as SourceFile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from [$(vFile)]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (ooxml, embedded labels); &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Next&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;when running the above code it sows the error like :&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;IMG alt="Error.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/212049_Error.PNG" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Aug 2018 17:47:13 GMT</pubDate>
    <dc:creator>Srinivas</dc:creator>
    <dc:date>2018-08-28T17:47:13Z</dc:date>
    <item>
      <title>Extract the multiple excel files with different sheetnames and different hearders</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-the-multiple-excel-files-with-different-sheetnames-and/m-p/129381#M19529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I need to extract the multiple excel file with different sheetNames and different headers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #ff0000;"&gt;Excel 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Headers1,&lt;SPAN style="font-size: 13.3333px;"&gt;Headers2,&lt;SPAN style="font-size: 13.3333px;"&gt;Headers3,&lt;SPAN style="font-size: 13.3333px;"&gt;Headers4,&lt;SPAN style="font-size: 13.3333px;"&gt;Headers5 and sheetnames is &lt;STRONG&gt;Sheet1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;Excel 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Headers1,&lt;SPAN style="font-size: 13.3333px;"&gt;Headers2,&lt;SPAN style="font-size: 13.3333px;"&gt;Headers3,&lt;SPAN style="font-size: 13.3333px;"&gt;Headers4,&lt;SPAN style="font-size: 13.3333px;"&gt;Headers5 and sheetnames is &lt;STRONG&gt;Sheet1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style="color: #ff0000;"&gt;Excel 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Headers1,&lt;SPAN style="font-size: 13.3333px;"&gt;Headers3&lt;SPAN style="font-size: 13.3333px;"&gt;,&lt;SPAN style="font-size: 13.3333px;"&gt;Headers5 and sheetnames is &lt;STRONG&gt;Data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;Excel 4&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Headers1,&lt;SPAN style="font-size: 13.3333px;"&gt;Headers2,&lt;SPAN style="font-size: 13.3333px;"&gt;Headers3,&lt;SPAN style="font-size: 13.3333px;"&gt;Headers4,&lt;SPAN style="font-size: 13.3333px;"&gt;Headers5 and sheetnames is &lt;STRONG&gt;Sheet1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For the above scenario Excel 1, &lt;SPAN style="font-size: 13.3333px;"&gt;Excel 2 and &lt;SPAN style="font-size: 13.3333px;"&gt;Excel 4, H&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;eaders names and sheetNames are same&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;But Excel 3 doesn't have same headers and sheetName. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am struck with the below code it is not executable please suggest me,&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vPath = '.C:\Users\Pol\Desktop\Data\Xlsx';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for each vFile in FileList('$(vPath2)\*.Xlsx')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TableName:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; load&amp;nbsp; *,&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vFile)' as SourceFile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from [$(vFile)]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (ooxml, embedded labels); &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Next&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;when running the above code it sows the error like :&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;IMG alt="Error.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/212049_Error.PNG" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2018 17:47:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-the-multiple-excel-files-with-different-sheetnames-and/m-p/129381#M19529</guid>
      <dc:creator>Srinivas</dc:creator>
      <dc:date>2018-08-28T17:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Extract the multiple excel files with different sheetnames and different hearders</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-the-multiple-excel-files-with-different-sheetnames-and/m-p/129382#M19530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a routine I developed two and a half years ago.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a working QlikView application for you along with an Excel workbook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find some more explanation in this article: &lt;A href="https://community.qlik.com/docs/DOC-15921"&gt;How to extract Sheet Names from an Excel XLSX-file without ODBC&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attached QlikView application has been modified so it illustrates how you can get the sheet names first and then iterate with a FOR NEXT loop to load the various sheets. I leave it to you to add an extra FOR NEXT loop to iterate through several Excel Workbook files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2018 20:12:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-the-multiple-excel-files-with-different-sheetnames-and/m-p/129382#M19530</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-08-28T20:12:30Z</dc:date>
    </item>
  </channel>
</rss>

