<?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: Excel with multiple sheets in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Excel-with-multiple-sheets/m-p/1524853#M37695</link>
    <description>Thanks a lot. My script is working now!!</description>
    <pubDate>Fri, 28 Dec 2018 13:59:23 GMT</pubDate>
    <dc:creator>rhinobundy</dc:creator>
    <dc:date>2018-12-28T13:59:23Z</dc:date>
    <item>
      <title>Excel with multiple sheets</title>
      <link>https://community.qlik.com/t5/App-Development/Excel-with-multiple-sheets/m-p/1524315#M37629</link>
      <description>&lt;P&gt;Hi I want to load data from multiple excelfiles that can containe multiple worksheet. I have made a Excel file that contains the name of the files, the worksheet and the path where it is placed.&lt;/P&gt;&lt;P&gt;I made a script, you can see below. Until the row with the Call everything seems to go well.&lt;/P&gt;&lt;P&gt;Can anybody tell me how to call the subroutine with variables and then load the data from the specific worksheet that is written in the variable. I would be very greatfull!!&lt;/P&gt;&lt;P&gt;This is the script that I have written! I also have posted the Excel files that I use in this script. It will expand if this script works.&lt;/P&gt;&lt;P&gt;Let vTeller=1;&lt;BR /&gt;IMPORTEER:&lt;BR /&gt;LOAD&lt;BR /&gt;RowNo() as rijnr,&lt;BR /&gt;padnaam,&lt;BR /&gt;excelbestand,&lt;BR /&gt;werkblad&lt;BR /&gt;FROM [lib://Qlik/instellingen.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Blad1);&lt;/P&gt;&lt;P&gt;MAXAANTAL:&lt;BR /&gt;Load max(rijnr) as MaxAantal&lt;BR /&gt;resident IMPORTEER;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LET vMaxAantal = peek('MaxAantal');&lt;/P&gt;&lt;P&gt;For vTeller =1 to $(vMaxAantal)&lt;/P&gt;&lt;P&gt;tmp:&lt;BR /&gt;load&lt;BR /&gt;rijnr as intRijnr,&lt;BR /&gt;padnaam as strPadnaam,&lt;BR /&gt;excelbestand as strExcelBestand,&lt;BR /&gt;werkblad as strWerkblad&lt;BR /&gt;Resident IMPORTEER&lt;BR /&gt;WHERE rijnr=$(vTeller);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LET vRijnr = peek('intRijnr');&lt;BR /&gt;LET vPath ='lib://Document/';&lt;BR /&gt;LET vExcel = peek('strExcelBestand');&lt;BR /&gt;LET vWerkblad = peek('strWerkblad');&lt;BR /&gt;LET vFullPath = '$(vPath)$(vExcel)';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Call LaadData('$(vFullPath)','$(vPath)','$(vExcel)','$(vWerkblad)');&lt;BR /&gt;drop table tmp;&lt;BR /&gt;next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;sub LaadData (vFullPath,vPath, vExcel,vWerkblad)&lt;BR /&gt;trace $(vPath);&lt;BR /&gt;trace $(vExcel);&lt;BR /&gt;trace $(vWerkblad);&lt;BR /&gt;trace $(vFullPath);&lt;/P&gt;&lt;P&gt;LAADGEGEVENS:&lt;BR /&gt;LOAD&lt;BR /&gt;bron,&lt;BR /&gt;naam,&lt;BR /&gt;aantal,&lt;BR /&gt;nr,&lt;BR /&gt;bestandsnaam&lt;BR /&gt;FROM $(vFullPath)&lt;BR /&gt;(ooxml, embedded labels, table is $(vWerkblad));&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;end Sub&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:41:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excel-with-multiple-sheets/m-p/1524315#M37629</guid>
      <dc:creator>rhinobundy</dc:creator>
      <dc:date>2024-11-16T21:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Excel with multiple sheets</title>
      <link>https://community.qlik.com/t5/App-Development/Excel-with-multiple-sheets/m-p/1524319#M37630</link>
      <description>&lt;P&gt;The subroutine needs to be defined before you can call it. If the script you posted is as you created it then you need to move the code for the subroutine up to at lease above the for loop.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 11:35:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excel-with-multiple-sheets/m-p/1524319#M37630</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-12-27T11:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Excel with multiple sheets</title>
      <link>https://community.qlik.com/t5/App-Development/Excel-with-multiple-sheets/m-p/1524853#M37695</link>
      <description>Thanks a lot. My script is working now!!</description>
      <pubDate>Fri, 28 Dec 2018 13:59:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excel-with-multiple-sheets/m-p/1524853#M37695</guid>
      <dc:creator>rhinobundy</dc:creator>
      <dc:date>2018-12-28T13:59:23Z</dc:date>
    </item>
  </channel>
</rss>

