<?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 Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-Help/m-p/362264#M134662</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any ideas on what is wrong with this?&amp;nbsp; It fails after the last ”end if”.&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;SUB SetSKU&lt;BR /&gt;&lt;BR /&gt;vSKUCount = ActiveDocument.Variables("vSKUCount1").GetContent.string&lt;BR /&gt;vSKUDescCount =ActiveDocument.Variables("vSKUDescCount1").GetContent.string&lt;BR /&gt;&lt;BR /&gt;set f = ActiveDocument.Fields("SKUToggle")&lt;BR /&gt;&lt;BR /&gt;if vSKUCount = 1 or vSKUDescCount = 1 then&lt;BR /&gt;f.Select "Selected SKU"&lt;BR /&gt;&lt;BR /&gt;else&lt;BR /&gt;if vSKUCount &amp;gt; 1 or vSKUDescCount &amp;gt; 1 then&lt;BR /&gt;f.Select "Multiple SKUs"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;else&lt;BR /&gt;if&amp;nbsp; vSKUCount = 0 or vSKUDescCount = 0 then&lt;BR /&gt;f.Select "All SKUs"&lt;BR /&gt;&lt;BR /&gt;end if&lt;BR /&gt;end if&lt;BR /&gt;end if&lt;BR /&gt;&lt;BR /&gt;Call CreateSetAnalysis &lt;BR /&gt;&lt;BR /&gt;END SUB &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Apr 2012 22:49:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-04-20T22:49:51Z</dc:date>
    <item>
      <title>Macro Help</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Help/m-p/362264#M134662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any ideas on what is wrong with this?&amp;nbsp; It fails after the last ”end if”.&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;SUB SetSKU&lt;BR /&gt;&lt;BR /&gt;vSKUCount = ActiveDocument.Variables("vSKUCount1").GetContent.string&lt;BR /&gt;vSKUDescCount =ActiveDocument.Variables("vSKUDescCount1").GetContent.string&lt;BR /&gt;&lt;BR /&gt;set f = ActiveDocument.Fields("SKUToggle")&lt;BR /&gt;&lt;BR /&gt;if vSKUCount = 1 or vSKUDescCount = 1 then&lt;BR /&gt;f.Select "Selected SKU"&lt;BR /&gt;&lt;BR /&gt;else&lt;BR /&gt;if vSKUCount &amp;gt; 1 or vSKUDescCount &amp;gt; 1 then&lt;BR /&gt;f.Select "Multiple SKUs"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;else&lt;BR /&gt;if&amp;nbsp; vSKUCount = 0 or vSKUDescCount = 0 then&lt;BR /&gt;f.Select "All SKUs"&lt;BR /&gt;&lt;BR /&gt;end if&lt;BR /&gt;end if&lt;BR /&gt;end if&lt;BR /&gt;&lt;BR /&gt;Call CreateSetAnalysis &lt;BR /&gt;&lt;BR /&gt;END SUB &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 22:49:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Help/m-p/362264#M134662</guid>
      <dc:creator />
      <dc:date>2012-04-20T22:49:51Z</dc:date>
    </item>
    <item>
      <title>Macro Help</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Help/m-p/362265#M134663</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;I don't see anything wrong with your if/end if statements, although I suggest that you indent the code to more easily keep track of the if/end ifs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But are you sure that it is the error is happening at the end if and not the call statement below. I would comment the call out and see if the error still occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Apr 2012 06:39:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Help/m-p/362265#M134663</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-04-21T06:39:39Z</dc:date>
    </item>
  </channel>
</rss>

