<?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: Run the macro(ChangeColor on ActiveTab) through load script and assign automatic to new tabs? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Run-the-macro-ChangeColor-on-ActiveTab-through-load-script-and/m-p/1747699#M590553</link>
    <description>&lt;P&gt;Why the macro-stuff and not just using an expression within the color-settings of the sheet? Maybe something like this:&lt;/P&gt;&lt;P&gt;if(subfield(GetActiveSheetId(), '\', 2) = 'SH11', red(), yellow())&lt;/P&gt;&lt;P&gt;whereby this expression needs to be put into each tab with determining the appropriate sheet-id.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 12:50:46 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2020-09-28T12:50:46Z</dc:date>
    <item>
      <title>Run the macro(ChangeColor on ActiveTab) through load script and assign automatic to new tabs?</title>
      <link>https://community.qlik.com/t5/QlikView/Run-the-macro-ChangeColor-on-ActiveTab-through-load-script-and/m-p/1747652#M590552</link>
      <description>&lt;P&gt;Hallo everyone!&lt;/P&gt;&lt;P&gt;I need your help and advice. I have a macro script(VB) that changes the color of the active tab, but for each new tab I have to call it via sheet properties. I would like to ask if there is a possibility that this macro script is automatically assigned to each new and existing created TAB without me having to manually call the macro in each TAB?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:40:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Run-the-macro-ChangeColor-on-ActiveTab-through-load-script-and/m-p/1747652#M590552</guid>
      <dc:creator>Matija92</dc:creator>
      <dc:date>2020-09-28T10:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Run the macro(ChangeColor on ActiveTab) through load script and assign automatic to new tabs?</title>
      <link>https://community.qlik.com/t5/QlikView/Run-the-macro-ChangeColor-on-ActiveTab-through-load-script-and/m-p/1747699#M590553</link>
      <description>&lt;P&gt;Why the macro-stuff and not just using an expression within the color-settings of the sheet? Maybe something like this:&lt;/P&gt;&lt;P&gt;if(subfield(GetActiveSheetId(), '\', 2) = 'SH11', red(), yellow())&lt;/P&gt;&lt;P&gt;whereby this expression needs to be put into each tab with determining the appropriate sheet-id.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:50:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Run-the-macro-ChangeColor-on-ActiveTab-through-load-script-and/m-p/1747699#M590553</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-09-28T12:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Run the macro(ChangeColor on ActiveTab) through load script and assign automatic to new tabs?</title>
      <link>https://community.qlik.com/t5/QlikView/Run-the-macro-ChangeColor-on-ActiveTab-through-load-script-and/m-p/1747706#M590554</link>
      <description>&lt;P&gt;Thank you, but I don't want to use that command and I want to avoid entering commands manually for each tab. I wrote already a macro script that works great, but it also has to be called in each tab and i want that it happens automatically.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:02:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Run-the-macro-ChangeColor-on-ActiveTab-through-load-script-and/m-p/1747706#M590554</guid>
      <dc:creator>Matija92</dc:creator>
      <dc:date>2020-09-28T13:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Run the macro(ChangeColor on ActiveTab) through load script and assign automatic to new tabs?</title>
      <link>https://community.qlik.com/t5/QlikView/Run-the-macro-ChangeColor-on-ActiveTab-through-load-script-and/m-p/1748006#M590555</link>
      <description>&lt;P&gt;You could try to call the macro with an OnActivateSheet action whereby I would solve it with the above expression because it's very simple and fast to do - at least if it's implemented as requirement from the beginning (doing it afterwards with dozens of sheets costs of course some efforts ... even then I would use the expression).&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:11:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Run-the-macro-ChangeColor-on-ActiveTab-through-load-script-and/m-p/1748006#M590555</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-09-29T09:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Run the macro(ChangeColor on ActiveTab) through load script and assign automatic to new tabs?</title>
      <link>https://community.qlik.com/t5/QlikView/Run-the-macro-ChangeColor-on-ActiveTab-through-load-script-and/m-p/1748322#M590556</link>
      <description>&lt;P&gt;The question was whether I could do it automatically. I already know about both solutions that change the color of the active tab, but I'm looking for an option that can assign it to each newly created tab automatically. Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 06:27:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Run-the-macro-ChangeColor-on-ActiveTab-through-load-script-and/m-p/1748322#M590556</guid>
      <dc:creator>Matija92</dc:creator>
      <dc:date>2020-09-30T06:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Run the macro(ChangeColor on ActiveTab) through load script and assign automatic to new tabs?</title>
      <link>https://community.qlik.com/t5/QlikView/Run-the-macro-ChangeColor-on-ActiveTab-through-load-script-and/m-p/1748505#M590557</link>
      <description>&lt;P&gt;I think it should be possible to set such an expression to each sheet. You could try to replace your color-setting from your macro with an expression. How to trigger it might not quite easy and will probably depend on what should in general happens and when? If you stuck with it you should take a look within the APIGuide.qvw which you could find with your install-folder by automation.&lt;/P&gt;&lt;P&gt;Like above already hinted I doubt that you will save with it much time. There aren't so many sheets that it make sense - you will always need to set multiple other settings to a sheet within the properties and to control if everything worked as it should ... therefore where is the benefit?&lt;/P&gt;&lt;P&gt;My preferred way of creating a new sheet is usually just to copy a master-sheet (or maybe a certain available sheet) to get all used properties within the new sheet, too - and just need to change the name (and if it should have different color-settings, visibilities and so on - usually not) and could create new charts.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 14:08:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Run-the-macro-ChangeColor-on-ActiveTab-through-load-script-and/m-p/1748505#M590557</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-09-30T14:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Run the macro(ChangeColor on ActiveTab) through load script and assign automatic to new tabs?</title>
      <link>https://community.qlik.com/t5/QlikView/Run-the-macro-ChangeColor-on-ActiveTab-through-load-script-and/m-p/1754438#M590558</link>
      <description>&lt;P&gt;You would need to look in the Document Properties of the app to change things for all new sheets you add, but that will only impact new sheets, not existing sheets, just FYI.&amp;nbsp; One key thing to keep in mind regarding use of macros, this forces single-thread calculation condition and may be subject to timing issues causing odd calculation sequences etc., macro should be last resort when developing and there is no other means of accomplishing things...&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 11:45:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Run-the-macro-ChangeColor-on-ActiveTab-through-load-script-and/m-p/1754438#M590558</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-10-21T11:45:26Z</dc:date>
    </item>
  </channel>
</rss>

