<?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: Macro for Border (Part 2) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-for-Border-Part-2/m-p/1271228#M399875</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it working using this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set Rng = XLSheet.Cells.Find("Total").Offset(0, 2)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jan 2017 12:59:38 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-01-04T12:59:38Z</dc:date>
    <item>
      <title>Macro for Border (Part 2)</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-Border-Part-2/m-p/1271227#M399874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to &lt;A href="https://community.qlik.com/qlik-users/178253"&gt;tamilarasu&lt;/A&gt;‌ and &lt;A href="https://community.qlik.com/qlik-users/27943"&gt;marcus_sommer&lt;/A&gt;‌ I was able to get the first part of the issue under my belt &lt;A href="https://community.qlik.com/thread/245067"&gt;Macro for Border&lt;/A&gt;. Now, the next part is to assign this code to a cell which corresponds to a particular value in another cell. For example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 2&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;XYZ&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;ABC&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Total&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the idea is to apply the border to the cell where Header 1 = 'Total'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 12:42:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-Border-Part-2/m-p/1271227#M399874</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-04T12:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Macro for Border (Part 2)</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-Border-Part-2/m-p/1271228#M399875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it working using this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set Rng = XLSheet.Cells.Find("Total").Offset(0, 2)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 12:59:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-Border-Part-2/m-p/1271228#M399875</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-04T12:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Macro for Border (Part 2)</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-Border-Part-2/m-p/1271229#M399876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one possibility is to query which of your cells contained the value 'Total' within a loop maybe in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i = 1 to EndOfYourRows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if XLSheet.Range("B" &amp;amp; i).Value = 'Total' then&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set Rng = XLSheet.Range("C" &amp;amp; i)&lt;SPAN style="color: #ff0000;"&gt;.Select&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end if&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whereby EndOfYourRows could be generated through something like "UsedRange.Columns.Count". It will be depend on your concrete case which method will be needed for it. An alternative could be to count the number of rows before in qlik within a variable like: count(Dim1&amp;amp;Dim2&amp;amp;Dim3) - which meant you could avoid the loop and address the cells directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 13:03:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-Border-Part-2/m-p/1271229#M399876</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-01-04T13:03:48Z</dc:date>
    </item>
  </channel>
</rss>

