<?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 2 macros for one sheet problems in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/2-macros-for-one-sheet-problems/m-p/231938#M83610</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm still using version 8.5&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Nov 2009 20:30:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-11-05T20:30:25Z</dc:date>
    <item>
      <title>2 macros for one sheet problems</title>
      <link>https://community.qlik.com/t5/QlikView/2-macros-for-one-sheet-problems/m-p/231933#M83605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm very new to macros but have created one in where when a sheet is selected a certain field is automatically selected:&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("Active").Select ActiveDocument.Evaluate("Active")&lt;/P&gt;&lt;P&gt;However, I want to create a similar macro that when I leave the sheet the field selection is removed. I know how to do this but it won't seem to let me create the second macro for some reason? Anyone know why?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 00:25:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2-macros-for-one-sheet-problems/m-p/231933#M83605</guid>
      <dc:creator />
      <dc:date>2009-11-05T00:25:34Z</dc:date>
    </item>
    <item>
      <title>2 macros for one sheet problems</title>
      <link>https://community.qlik.com/t5/QlikView/2-macros-for-one-sheet-problems/m-p/231934#M83606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you mean by, "won't seem to let me create the second macro?" Are you able to create a different Sub to handle the OnLeaveSheet?&lt;/P&gt;&lt;P&gt;What are you using to Deselect the field? You could use ToggleSelect (instead of Select). If that field is Selected, it will then unselect it (but if the field is not selected, it will select it). You could also clear that field, but that will clear everything.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 00:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2-macros-for-one-sheet-problems/m-p/231934#M83606</guid>
      <dc:creator />
      <dc:date>2009-11-05T00:42:54Z</dc:date>
    </item>
    <item>
      <title>2 macros for one sheet problems</title>
      <link>https://community.qlik.com/t5/QlikView/2-macros-for-one-sheet-problems/m-p/231935#M83607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm going to sheet properties on the relecant sheet and then macros. I have one macro on the &lt;EM&gt;OnActivateSheet&lt;/EM&gt; Trigger. I then try to create a different one on the &lt;EM&gt;OnLeaveSheet&lt;/EM&gt; trigger, but when I do this it ends up editing my initial (OnActivateSheet) macro. Any ideas why this would be the case?&lt;/P&gt;&lt;P&gt;I would like my leaving the sheet macro to be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sub ClearField&lt;BR /&gt;ActiveDocument.fields(Active).Clear&lt;BR /&gt;End Sub&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;What I want is one macro for when I click on this sheet and a separate macro so that then I leave the sheet the field is deactivated.&lt;/P&gt;&lt;P&gt;I would appreciate any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 16:21:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2-macros-for-one-sheet-problems/m-p/231935#M83607</guid>
      <dc:creator />
      <dc:date>2009-11-05T16:21:46Z</dc:date>
    </item>
    <item>
      <title>2 macros for one sheet problems</title>
      <link>https://community.qlik.com/t5/QlikView/2-macros-for-one-sheet-problems/m-p/231936#M83608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;Apologies - I thought a new module window was needed for each macro! My mistake. Got it working now. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 16:47:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2-macros-for-one-sheet-problems/m-p/231936#M83608</guid>
      <dc:creator />
      <dc:date>2009-11-05T16:47:48Z</dc:date>
    </item>
    <item>
      <title>2 macros for one sheet problems</title>
      <link>https://community.qlik.com/t5/QlikView/2-macros-for-one-sheet-problems/m-p/231937#M83609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just curious why did you use macro to select / unselect a field value and why not set actions on the sheet itself. (Sheet Properties &amp;gt;&amp;gt; Actions &amp;gt;&amp;gt; Action Type &amp;gt;&amp;gt; Selection)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 20:14:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2-macros-for-one-sheet-problems/m-p/231937#M83609</guid>
      <dc:creator>amit_shetty78</dc:creator>
      <dc:date>2009-11-05T20:14:02Z</dc:date>
    </item>
    <item>
      <title>2 macros for one sheet problems</title>
      <link>https://community.qlik.com/t5/QlikView/2-macros-for-one-sheet-problems/m-p/231938#M83610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm still using version 8.5&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 20:30:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2-macros-for-one-sheet-problems/m-p/231938#M83610</guid>
      <dc:creator />
      <dc:date>2009-11-05T20:30:25Z</dc:date>
    </item>
  </channel>
</rss>

