<?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 IF macro based on selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-macro-based-on-selection/m-p/160365#M34667</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your code is a little hard to follow with all those code blocks. Could you repost it? Use plain text or copy &amp;amp; paste into Notepad before pasting it here.&lt;/P&gt;&lt;P&gt;This should work:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;If ActiveDocument.Variables("VComment1Sheet").GetContent.String = "SH17" Then&lt;BR /&gt; ActiveDocument.GetSheet("SH17").Activate&lt;BR /&gt;End If&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Aug 2010 16:36:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-08-13T16:36:39Z</dc:date>
    <item>
      <title>IF macro based on selection</title>
      <link>https://community.qlik.com/t5/QlikView/IF-macro-based-on-selection/m-p/160364#M34666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I've been looking around the forum and i don't think this has been answered already, my apologies if it has. I've got a report which i would like to include some text boxes which will be updated by some collegues of mine before the report goes out. I would like to have a button which will take them to a set location with set selections made. I've tried applying a bookmark to a button but it doesn't seem to work. It maybe that i'm not using this feature correctly. The other thing i have found is that i can get it to work if i use the book marks menu it will select the page and selections but it does appear to be a bit slow in making the changes.&lt;/P&gt;&lt;P&gt;I am thinking that a macro maybe the quicker way to go as i use a few macro's to export a heap of charts or move to other pages already and they seem to be nice and quick.&lt;/P&gt;&lt;P&gt;the problem i appear to be having is the = section in my macro script:&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;B&gt;IF&lt;/B&gt; (ActiveDocument.Variables("VComment1Sheet").GetContent. &lt;B&gt;String&lt;/B&gt;) = ("SH17") &lt;B&gt;then&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ActiveDocument.GetSheet("SH17").Activate&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; This appears to flag up an error macro parse failed. Functionality was lost. I think that means that it doesn't like part of it. &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone has tried this before or has any suggestions they would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Michel&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 15:42:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-macro-based-on-selection/m-p/160364#M34666</guid>
      <dc:creator />
      <dc:date>2010-08-13T15:42:08Z</dc:date>
    </item>
    <item>
      <title>IF macro based on selection</title>
      <link>https://community.qlik.com/t5/QlikView/IF-macro-based-on-selection/m-p/160365#M34667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your code is a little hard to follow with all those code blocks. Could you repost it? Use plain text or copy &amp;amp; paste into Notepad before pasting it here.&lt;/P&gt;&lt;P&gt;This should work:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;If ActiveDocument.Variables("VComment1Sheet").GetContent.String = "SH17" Then&lt;BR /&gt; ActiveDocument.GetSheet("SH17").Activate&lt;BR /&gt;End If&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 16:36:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-macro-based-on-selection/m-p/160365#M34667</guid>
      <dc:creator />
      <dc:date>2010-08-13T16:36:39Z</dc:date>
    </item>
  </channel>
</rss>

