<?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 Change Expression Comment with Macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Change-Expression-Comment-with-Macro/m-p/252058#M1240304</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;This worked for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub test&lt;/P&gt;&lt;P&gt;set chart = ActiveDocument.GetSheetObject("CH30")&lt;/P&gt;&lt;P&gt;set p = chart.GetProperties&lt;/P&gt;&lt;P&gt;set expr = p.Expressions.Item(0).Item(0).Data.ExpressionData&lt;/P&gt;&lt;P&gt;expr.Comment = "sum(Amount)"&lt;/P&gt;&lt;P&gt;chart.SetProperties p&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jan 2012 11:32:28 GMT</pubDate>
    <dc:creator>jerrysvensson</dc:creator>
    <dc:date>2012-01-26T11:32:28Z</dc:date>
    <item>
      <title>Change Expression Comment with Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Expression-Comment-with-Macro/m-p/252057#M1240302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to add a comment to an expression with a macro?&amp;nbsp; I see a function call Comment defined within the iExpressionData class, but there is no example and when I try the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;set chart = ActiveDocument.getSheetObject("ReportBuilder")&lt;/P&gt;&lt;P&gt;set chartProperties = chart.GetProperties&lt;/P&gt;&lt;P&gt;set chartExpressions&amp;nbsp; = chartProperties.Expressions&lt;/P&gt;&lt;P&gt;set chartExpression = chartExpressions.Item(j).Item(0).Data&lt;/P&gt;&lt;P&gt;chartExpression.ExpressionVisual.Label.v = Metric &amp;amp; "(This)"&lt;/P&gt;&lt;P&gt;chartExpression.ExpressionData.Comment.v "='$(" &amp;amp; Metric &amp;amp; ")'"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get an error that this property or method does not exist.&amp;nbsp; I've tried with and without the ".v".&amp;nbsp; Has anybody been able to add a comment by using a macro?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Karl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 16:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Expression-Comment-with-Macro/m-p/252057#M1240302</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2026-01-26T16:26:21Z</dc:date>
    </item>
    <item>
      <title>Change Expression Comment with Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Expression-Comment-with-Macro/m-p/252058#M1240304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;This worked for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub test&lt;/P&gt;&lt;P&gt;set chart = ActiveDocument.GetSheetObject("CH30")&lt;/P&gt;&lt;P&gt;set p = chart.GetProperties&lt;/P&gt;&lt;P&gt;set expr = p.Expressions.Item(0).Item(0).Data.ExpressionData&lt;/P&gt;&lt;P&gt;expr.Comment = "sum(Amount)"&lt;/P&gt;&lt;P&gt;chart.SetProperties p&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2012 11:32:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Expression-Comment-with-Macro/m-p/252058#M1240304</guid>
      <dc:creator>jerrysvensson</dc:creator>
      <dc:date>2012-01-26T11:32:28Z</dc:date>
    </item>
  </channel>
</rss>

