<?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: Error in Script for Loop in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-in-Script-for-Loop/m-p/947727#M326307</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found my entirely dumb error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please ignore this post&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Nov 2015 15:53:08 GMT</pubDate>
    <dc:creator>evansabres</dc:creator>
    <dc:date>2015-11-05T15:53:08Z</dc:date>
    <item>
      <title>Error in Script for Loop</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Script-for-Loop/m-p/947726#M326306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating an application using an .xlsx file that has 82 different sheets. I want to create a script that will allow me to access all 82 sheets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, my script is as is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;// ====================Broadcast Intervals Table ====================&lt;BR /&gt; &lt;/SPAN&gt;&lt;BR /&gt; &lt;STRONG style="color: #0000ff;"&gt;DIRECTORY&lt;/STRONG&gt; 'Q:\qlkvw\prod\data\digital\Nielsen\Ratings';&lt;BR /&gt; &lt;BR /&gt; &lt;STRONG style="color: #0000ff;"&gt;LET&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;vStartSheetNum&lt;/EM&gt;&lt;/STRONG&gt; = 1;&lt;BR /&gt; &lt;STRONG style="color: #0000ff;"&gt;LET&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;vEndSheetNum&lt;/EM&gt;&lt;/STRONG&gt; = 82;&lt;BR /&gt; &lt;STRONG style="color: #0000ff;"&gt;Let&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;vExcelFileName&lt;/EM&gt;&lt;/STRONG&gt; = 'Broadcast Intervals';&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="color: #008000;"&gt;//GENERATE EMPTY TABLE&lt;BR /&gt; &lt;/SPAN&gt;INTERVALS_TABLE:&lt;BR /&gt; &lt;STRONG style="color: #0000ff;"&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt; '' &lt;SPAN style="color: #0000ff;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;TEST1&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;AUTOGENERATE&lt;/SPAN&gt; (0);&lt;BR /&gt; &lt;STRONG style="color: #0000ff;"&gt;FOR&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;index&lt;/EM&gt;&lt;/STRONG&gt; = &lt;SPAN style="color: #800000;"&gt;vStartSheetNum&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;TO&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;vEndSheetNum&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt;(INTERVALS_TABLE) &lt;BR /&gt; &lt;STRONG style="color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; &lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;GameDate&lt;/SPAN&gt;, &lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;Time&lt;/SPAN&gt;, &lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;Rating&lt;/SPAN&gt;, &lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;Share&lt;/SPAN&gt;, &lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;Households&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;FROM&lt;/SPAN&gt; [$(vExcelFileName).xlsx] (&lt;SPAN style="color: #0000ff;"&gt;ooxml&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;embedded&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;labels&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;table&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;is&lt;/SPAN&gt; [Game $(index)]);&lt;BR /&gt; &lt;STRONG style="color: #0000ff;"&gt;NEXT &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;However, when I run the script, I get the following error message:&lt;/P&gt;&lt;P&gt;Script line error: &lt;/P&gt;&lt;P&gt;FOR index = vStartSheetNum TO vEndSheetNum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 15:52:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Script-for-Loop/m-p/947726#M326306</guid>
      <dc:creator>evansabres</dc:creator>
      <dc:date>2015-11-05T15:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Script for Loop</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Script-for-Loop/m-p/947727#M326307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found my entirely dumb error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please ignore this post&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 15:53:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Script-for-Loop/m-p/947727#M326307</guid>
      <dc:creator>evansabres</dc:creator>
      <dc:date>2015-11-05T15:53:08Z</dc:date>
    </item>
  </channel>
</rss>

