<?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: . If an excel file contains multiple sheets with different data\table . how to create a qvd for each sheet present in that excel file? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-an-excel-file-contains-multiple-sheets-with-different-data/m-p/695167#M1083509</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manoj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to create those sheet as 1,2,3..... . Please follow these step below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1. press Alt F11, double click on any sheets in the left of the opened window and copy the below code as shown in the below picture. &lt;/P&gt;&lt;P&gt;Sub renameSheets() &lt;BR /&gt; Dim iSheetCount &lt;BR /&gt; For iSheetCount = 1 To Sheets.Count &lt;BR /&gt; Sheets(iSheetCount).Name = iSheetCount &lt;BR /&gt; Next iSheetCount &lt;BR /&gt; End Sub&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/60788_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Then run by clicking the run button like below&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/60789_pastedImage_2.png" style="width: 620px; height: 356px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step3:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Save as the file in xlsx fomat. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step4:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Then Open the Qlikview file, Press Cntrl E, go to the code marked in red as shown in the below picture and change the number as equal to the sheets available in the file “Name of your Excel sheet” after running the macro. Assuming the file contain 290 sheets. &lt;BR /&gt; Eg. for loop=1 to 290&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/60790_pastedImage_3.png" style="width: 620px; height: 358px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step5:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reload Qlikview&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/60791_pastedImage_4.png" style="width: 620px; height: 351px;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Hope this will help you.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AS&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jun 2014 05:50:48 GMT</pubDate>
    <dc:creator>amit_saini</dc:creator>
    <dc:date>2014-06-18T05:50:48Z</dc:date>
    <item>
      <title>. If an excel file contains multiple sheets with different data\table . how to create a qvd for each sheet present in that excel file?</title>
      <link>https://community.qlik.com/t5/QlikView/If-an-excel-file-contains-multiple-sheets-with-different-data/m-p/695164#M1083506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #141823; background: white; font-size: 10.5pt; font-family: 'Helvetica','sans-serif';"&gt;. If an excel file contains multiple sheets with different data\table . how to create a qvd for each sheet present in that excel file?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 12:14:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-an-excel-file-contains-multiple-sheets-with-different-data/m-p/695164#M1083506</guid>
      <dc:creator />
      <dc:date>2014-06-17T12:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: . If an excel file contains multiple sheets with different data\table . how to create a qvd for each sheet present in that excel file?</title>
      <link>https://community.qlik.com/t5/QlikView/If-an-excel-file-contains-multiple-sheets-with-different-data/m-p/695165#M1083507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is same as you load the excel file into the qlikview application but the difference is when u load the excel file u will see the screen that shows the fields in the excel file in that left top most corner u will have a tab called tables in that you can see the sheet names that your excel file contains&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 05:40:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-an-excel-file-contains-multiple-sheets-with-different-data/m-p/695165#M1083507</guid>
      <dc:creator />
      <dc:date>2014-06-18T05:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: . If an excel file contains multiple sheets with different data\table . how to create a qvd for each sheet present in that excel file?</title>
      <link>https://community.qlik.com/t5/QlikView/If-an-excel-file-contains-multiple-sheets-with-different-data/m-p/695166#M1083508</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;While loading the data from XL file you have option to select the sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from the tables option while extracting data you can easily select the desired sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 05:43:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-an-excel-file-contains-multiple-sheets-with-different-data/m-p/695166#M1083508</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2014-06-18T05:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: . If an excel file contains multiple sheets with different data\table . how to create a qvd for each sheet present in that excel file?</title>
      <link>https://community.qlik.com/t5/QlikView/If-an-excel-file-contains-multiple-sheets-with-different-data/m-p/695167#M1083509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manoj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to create those sheet as 1,2,3..... . Please follow these step below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1. press Alt F11, double click on any sheets in the left of the opened window and copy the below code as shown in the below picture. &lt;/P&gt;&lt;P&gt;Sub renameSheets() &lt;BR /&gt; Dim iSheetCount &lt;BR /&gt; For iSheetCount = 1 To Sheets.Count &lt;BR /&gt; Sheets(iSheetCount).Name = iSheetCount &lt;BR /&gt; Next iSheetCount &lt;BR /&gt; End Sub&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/60788_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Then run by clicking the run button like below&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/60789_pastedImage_2.png" style="width: 620px; height: 356px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step3:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Save as the file in xlsx fomat. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step4:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Then Open the Qlikview file, Press Cntrl E, go to the code marked in red as shown in the below picture and change the number as equal to the sheets available in the file “Name of your Excel sheet” after running the macro. Assuming the file contain 290 sheets. &lt;BR /&gt; Eg. for loop=1 to 290&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/60790_pastedImage_3.png" style="width: 620px; height: 358px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step5:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reload Qlikview&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/60791_pastedImage_4.png" style="width: 620px; height: 351px;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Hope this will help you.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AS&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 05:50:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-an-excel-file-contains-multiple-sheets-with-different-data/m-p/695167#M1083509</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2014-06-18T05:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: . If an excel file contains multiple sheets with different data\table . how to create a qvd for each sheet present in that excel file?</title>
      <link>https://community.qlik.com/t5/QlikView/If-an-excel-file-contains-multiple-sheets-with-different-data/m-p/695168#M1083510</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 use a script like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DIRECTORY;&lt;/P&gt;&lt;P&gt;Let vReportDefinitions = 'file path to your Excel file'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC CONNECT32 TO [Excel Files;DBQ=$(vReportDefinitions)];&lt;/P&gt;&lt;P&gt;SpreadsheetData:&lt;/P&gt;&lt;P&gt;SQLTABLES;&lt;/P&gt;&lt;P&gt;DISCONNECT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For zi = 0 To NoOfRows('SpreadsheetData') - 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; Let zSheet = Peek('TABLE_NAME', zi, 'SpreadsheetData');&lt;/P&gt;&lt;P&gt;&amp;nbsp; Let zOutput = Replace(vReportDefinitions, '.xls', '_' &amp;amp; zSheet &amp;amp; '.qvd');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Data:&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD * FROM [$(vReportDefinitions)]&lt;/P&gt;&lt;P&gt;&amp;nbsp; (biff, no labels, table is [$(vSheet)]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If Alt(NoOfRows('Data'), 0) &amp;gt; 0 Then&lt;/P&gt;&lt;P&gt;&amp;nbsp; STORE Data into [$(zOutput)] (qvd);&lt;/P&gt;&lt;P&gt;&amp;nbsp; Drop Table Data;&lt;/P&gt;&lt;P&gt;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is for xls files. For xlsx files, change the string '.xls' in the replace statement with '.xlsx' and (biff, ..) to (ooxml, ...) in the load statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 07:16:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-an-excel-file-contains-multiple-sheets-with-different-data/m-p/695168#M1083510</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-06-18T07:16:19Z</dc:date>
    </item>
  </channel>
</rss>

