<?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 How to use macro for Change label Name in Table Box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-macro-for-Change-label-Name-in-Table-Box/m-p/175266#M1329411</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miller,&lt;/P&gt;&lt;P&gt;if i want to change chart straight table then this macro gives error. In straight table, How i pass dimension label name in macro???&lt;/P&gt;&lt;P&gt;-Sathish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Feb 2011 11:30:23 GMT</pubDate>
    <dc:creator>sathishkumar_go</dc:creator>
    <dc:date>2011-02-18T11:30:23Z</dc:date>
    <item>
      <title>How to use macro for Change label Name in Table Box</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-macro-for-Change-label-Name-in-Table-Box/m-p/175262#M1329403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can some one give me macro code , For changing label Name in Table Box.&lt;/P&gt;&lt;P&gt;Sathish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-macro-for-Change-label-Name-in-Table-Box/m-p/175262#M1329403</guid>
      <dc:creator>sathishkumar_go</dc:creator>
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>How to use macro for Change label Name in Table Box</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-macro-for-Change-label-Name-in-Table-Box/m-p/175263#M1329406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Does it have to be a macro that changes the label? Or can you use a variable instead?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Feb 2011 22:12:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-macro-for-Change-label-Name-in-Table-Box/m-p/175263#M1329406</guid>
      <dc:creator />
      <dc:date>2011-02-09T22:12:39Z</dc:date>
    </item>
    <item>
      <title>How to use macro for Change label Name in Table Box</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-macro-for-Change-label-Name-in-Table-Box/m-p/175264#M1329407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sub TableBox&lt;BR /&gt; set tb = ActiveDocument.GetSheetObject("TB01")&lt;BR /&gt; set tbp = tb.GetProperties&lt;BR /&gt; set cols = tbp.Layout.ColLayouts&lt;BR /&gt; cols.Item(0).Label.v = "New Name"&lt;BR /&gt; tb.SetProperties tbp&lt;BR /&gt;End Sub&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This is for a TableBox with ID = TB01. This changes the first label. Modify the number in Item(x) to the column you want to change (it starts with 0). Cols is an array, so you can cycle through the list if you would like. Check the APIGuide for more information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Feb 2011 22:56:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-macro-for-Change-label-Name-in-Table-Box/m-p/175264#M1329407</guid>
      <dc:creator />
      <dc:date>2011-02-09T22:56:59Z</dc:date>
    </item>
    <item>
      <title>How to use macro for Change label Name in Table Box</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-macro-for-Change-label-Name-in-Table-Box/m-p/175265#M1329409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Miller.&lt;/P&gt;&lt;P&gt;Its working fine&lt;/P&gt;&lt;P&gt;-Sathish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 06:49:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-macro-for-Change-label-Name-in-Table-Box/m-p/175265#M1329409</guid>
      <dc:creator>sathishkumar_go</dc:creator>
      <dc:date>2011-02-10T06:49:55Z</dc:date>
    </item>
    <item>
      <title>How to use macro for Change label Name in Table Box</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-macro-for-Change-label-Name-in-Table-Box/m-p/175266#M1329411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miller,&lt;/P&gt;&lt;P&gt;if i want to change chart straight table then this macro gives error. In straight table, How i pass dimension label name in macro???&lt;/P&gt;&lt;P&gt;-Sathish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 11:30:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-macro-for-Change-label-Name-in-Table-Box/m-p/175266#M1329411</guid>
      <dc:creator>sathishkumar_go</dc:creator>
      <dc:date>2011-02-18T11:30:23Z</dc:date>
    </item>
    <item>
      <title>How to use macro for Change label Name in Table Box</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-macro-for-Change-label-Name-in-Table-Box/m-p/175267#M1329413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The macro is a little different when working with a chart. For some reason, on a chart, the Dimension Label Attribute is called Title. Try this:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sub Test&lt;BR /&gt; set chart = ActiveDocument.GetSheetObject("CH01")&lt;BR /&gt; set cp = chart.GetProperties&lt;BR /&gt; set dims = cp.Dimensions&lt;BR /&gt; dims(0).Title.v = "Test"&lt;BR /&gt; chart.SetProperties cp&lt;BR /&gt;End Sub&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Similarly to the above, the dimensions are an array, so you will need to choose the right element or you can loop through them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 21:34:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-macro-for-Change-label-Name-in-Table-Box/m-p/175267#M1329413</guid>
      <dc:creator />
      <dc:date>2011-02-21T21:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to use macro for Change label Name in Table Box</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-macro-for-Change-label-Name-in-Table-Box/m-p/175268#M1329415</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;If you have a table with all columns qualified, a common task in table charts is to set the column labels to unqualified names. So e.g. x.y becomes y. This macro does this for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call UnqualifyAllTableColumnLables("TB01")&lt;BR /&gt; &lt;BR /&gt;Sub UnqualifyAllTableColumnLables(theTable)&lt;BR /&gt;&amp;nbsp; Set tb = ActiveDocument.GetSheetObject(theTable)&lt;BR /&gt;&amp;nbsp; Set tbp = tb.GetProperties&lt;BR /&gt;&amp;nbsp; Set cols = tbp.Layout.ColLayouts&lt;BR /&gt;&amp;nbsp; For i = 0 to tb.GetColumnCount-1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set fld = tb.GetField(i)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If (Len(cols.Item(i).Label.v) = 0) Then cols.Item(i).Label.v = Mid(fld.Name,Instrrev(fld.Name,".")+1,999)&lt;BR /&gt;&amp;nbsp; Next&lt;BR /&gt;&amp;nbsp; tb.SetProperties tbp&lt;BR /&gt;End Sub &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 09:18:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-macro-for-Change-label-Name-in-Table-Box/m-p/175268#M1329415</guid>
      <dc:creator>hugmarcel</dc:creator>
      <dc:date>2018-09-25T09:18:49Z</dc:date>
    </item>
  </channel>
</rss>

