<?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: Setting active tab color in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Setting-active-tab-color/m-p/277968#M103553</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great idea, Erich!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 May 2013 19:47:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-02T19:47:46Z</dc:date>
    <item>
      <title>Setting active tab color</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-active-tab-color/m-p/277965#M103550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to set the active tab color.&amp;nbsp; In the attached document I tried to follow instructions below and seem to not be able to get it work.&amp;nbsp; Any suggestions on how to set the variable values it discusses below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: white; margin: 0px 0px 0px 0.5in;"&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #636363; font-size: 9pt;"&gt;First create a variable say vThisTab and set its value to 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: white; margin: 0px 0px 0px 0.5in;"&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #636363; font-size: 9pt;"&gt;Second go to Sheet Properties, Triggers, OnActivateSheet, Add Action, External, Set Variable, vThisTab, 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: white; margin: 0px 0px 0px 0.5in;"&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #636363; font-size: 9pt;"&gt;Third, OnLeaveSheet, Set Variable, vThisTab, 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: white; margin: 0px 0px 0px 0.5in;"&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #636363; font-size: 9pt;"&gt;Fourth, Sheet Properties, General, Tab Settings, Custom Colors, click on the Tab Color, Base Color, select Calculated and set the following conditional&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: white; margin: 0px 0px 0px 0.5in;"&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #636363; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: white; margin: 0px 0px 5pt 1in;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: #636363;"&gt;If($(vThisTab) = 1, RGB(255, 0, 0), RGB(0, 255, 0))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 17:54:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-active-tab-color/m-p/277965#M103550</guid>
      <dc:creator />
      <dc:date>2011-06-09T17:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Setting active tab color</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-active-tab-color/m-p/277966#M103551</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 think it will be hard tii get that method to work, since leaving a tab does not leave any trace.&lt;/P&gt;&lt;P&gt;I solved it by using a macro:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Set activeSheet = ActiveDocument.ActiveSheet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub SetTabColor&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'Set old sheet color back&lt;BR /&gt;&amp;nbsp; If (not isnull(activeSheet)) Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set sp=activeSheet.GetProperties&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sp.TabAttr.Mode = 1&amp;nbsp;&amp;nbsp; ' Sheet colors&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; activeSheet.SetProperties sp&lt;BR /&gt;&amp;nbsp; end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'Now, save the new sheet&lt;BR /&gt;&amp;nbsp; Set activeSheet = ActiveDocument.ActiveSheet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'And set the new tab color&lt;BR /&gt;&amp;nbsp; Set sp=activeSheet.GetProperties&lt;BR /&gt;&amp;nbsp; sp.TabAttr.BgColor.PrimaryCol.Col = RGB(255,0,0)&lt;BR /&gt;&amp;nbsp; sp.TabAttr.Mode = 2&amp;nbsp;&amp;nbsp; ' custom colors&lt;BR /&gt;&amp;nbsp; activeSheet.SetProperties sp&lt;BR /&gt; &lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then every tab need to call this makro in the OnActivateSheet trigger.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 22:52:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-active-tab-color/m-p/277966#M103551</guid>
      <dc:creator />
      <dc:date>2011-06-09T22:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Setting active tab color</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-active-tab-color/m-p/277967#M103552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I created an app with that logic. &lt;/P&gt;&lt;P&gt;Please, check my attachment. &lt;/P&gt;&lt;P&gt;On each tab, check on the general properties -&amp;gt; tab colors &lt;/P&gt;&lt;P&gt;also, check the triggers on all of them .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 23:32:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-active-tab-color/m-p/277967#M103552</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-06-09T23:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Setting active tab color</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-active-tab-color/m-p/277968#M103553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great idea, Erich!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 19:47:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-active-tab-color/m-p/277968#M103553</guid>
      <dc:creator />
      <dc:date>2013-05-02T19:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Setting active tab color</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-active-tab-color/m-p/277969#M103554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a video on YouTube to show how to do the same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="loading" href="http://youtu.be/aEAUHt6GzJA" title="http://youtu.be/aEAUHt6GzJA"&gt;http://youtu.be/aEAUHt6GzJA&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please share it if it works for you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 20:03:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-active-tab-color/m-p/277969#M103554</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2013-05-02T20:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Setting active tab color</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-active-tab-color/m-p/277970#M103555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works, and does exactly what I wanted it to do. Thanks, &lt;A href="https://community.qlik.com/qlik-users/11149"&gt;erich.shiino&lt;/A&gt;!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 17:53:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-active-tab-color/m-p/277970#M103555</guid>
      <dc:creator />
      <dc:date>2014-12-15T17:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Setting active tab color</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-active-tab-color/m-p/277971#M103556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it is better to use GetActiveSheetId() instead of variables. No need for sheet actions then.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 00:33:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-active-tab-color/m-p/277971#M103556</guid>
      <dc:creator>michaelfentondata</dc:creator>
      <dc:date>2015-08-04T00:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Setting active tab color</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-active-tab-color/m-p/1522540#M437644</link>
      <description>&lt;P&gt;Could you get this work on web view or access point?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 11:28:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-active-tab-color/m-p/1522540#M437644</guid>
      <dc:creator>omerfaruk</dc:creator>
      <dc:date>2018-12-19T11:28:48Z</dc:date>
    </item>
  </channel>
</rss>

