<?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 Macro execution halts in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-execution-halts/m-p/252030#M95565</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any thing wrong with below snippet? Macro execution halts highlighting the fourth line, but no error messages. Please help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub removeUnusedSheets(retain)&lt;/P&gt;&lt;P&gt;cntsheets= ActiveDocument.NoofSheets&lt;/P&gt;&lt;P&gt;for sindx=cint(retain)+1 to cntsheets-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.RemoveSheet sindx&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 Sep 2011 11:15:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-10T11:15:40Z</dc:date>
    <item>
      <title>Macro execution halts</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-execution-halts/m-p/252030#M95565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any thing wrong with below snippet? Macro execution halts highlighting the fourth line, but no error messages. Please help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub removeUnusedSheets(retain)&lt;/P&gt;&lt;P&gt;cntsheets= ActiveDocument.NoofSheets&lt;/P&gt;&lt;P&gt;for sindx=cint(retain)+1 to cntsheets-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.RemoveSheet sindx&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2011 11:15:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-execution-halts/m-p/252030#M95565</guid>
      <dc:creator />
      <dc:date>2011-09-10T11:15:40Z</dc:date>
    </item>
    <item>
      <title>Macro execution halts</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-execution-halts/m-p/252031#M95566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; It is possible that the sheet number doesn't exist or not properly created.&amp;nbsp; To find out, add line&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;msgbox(sindx)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;in the loop before your fourth line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2011 11:40:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-execution-halts/m-p/252031#M95566</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-10T11:40:02Z</dc:date>
    </item>
  </channel>
</rss>

