<?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 Rename a chart object using VBa in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rename-a-chart-object-using-VBa/m-p/266227#M1193543</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 have this code to create a table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;set Graph = ActiveDocument.Sheets("Main").CreateStraightTable&lt;BR /&gt;id = Graph.GetObjectId &lt;BR /&gt;msgbox "Chart Name = " &amp;amp; id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;, so I know the chart ID ( say "Document\CH07) , but I want to rename it to CH01. I suspect this my be through the getproperties, but assistance please!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jun 2011 11:38:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-06-06T11:38:53Z</dc:date>
    <item>
      <title>Rename a chart object using VBa</title>
      <link>https://community.qlik.com/t5/QlikView/Rename-a-chart-object-using-VBa/m-p/266227#M1193543</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 have this code to create a table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;set Graph = ActiveDocument.Sheets("Main").CreateStraightTable&lt;BR /&gt;id = Graph.GetObjectId &lt;BR /&gt;msgbox "Chart Name = " &amp;amp; id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;, so I know the chart ID ( say "Document\CH07) , but I want to rename it to CH01. I suspect this my be through the getproperties, but assistance please!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 11:38:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rename-a-chart-object-using-VBa/m-p/266227#M1193543</guid>
      <dc:creator />
      <dc:date>2011-06-06T11:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Rename a chart object using VBa</title>
      <link>https://community.qlik.com/t5/QlikView/Rename-a-chart-object-using-VBa/m-p/266228#M1193544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The macro is similar to this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;sub changeID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rem ** Change unique ID of a chart **&lt;/P&gt;&lt;P&gt;set g = ActiveDocument.GetSheetObject("CH01")&lt;/P&gt;&lt;P&gt;set gp = g.GetProperties&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GP.GRAPHLAYOUT.Frame.ObjectId = "MyChart"&lt;/P&gt;&lt;P&gt;g.SetProperties gp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also check my attachment. &lt;/P&gt;&lt;P&gt;(After you click, the ID will change, the second time it will fail, ok?) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 01:22:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rename-a-chart-object-using-VBa/m-p/266228#M1193544</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-06-07T01:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Rename a chart object using VBa</title>
      <link>https://community.qlik.com/t5/QlikView/Rename-a-chart-object-using-VBa/m-p/266229#M1193545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Many thanks Eric, this is exactly what I needed!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a reference document (or the api) avauilable where I can find details of the object properties?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 07:47:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rename-a-chart-object-using-VBa/m-p/266229#M1193545</guid>
      <dc:creator />
      <dc:date>2011-06-07T07:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Rename a chart object using VBa</title>
      <link>https://community.qlik.com/t5/QlikView/Rename-a-chart-object-using-VBa/m-p/266230#M1193546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can use the API Guide.qvw&lt;/P&gt;&lt;P&gt;It's located at: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\Program Files\QlikView\Documentation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also read the QV Automation reference.pdf. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a lot of examples in the .qvw&lt;/P&gt;&lt;P&gt;I think it`s not so clear how to follow it... for example, when i used: &lt;/P&gt;&lt;P&gt;.GRAPHLAYOUT&lt;/P&gt;&lt;P&gt; You get get more details by understanding the object iGraphLayout and so on...&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>Tue, 07 Jun 2011 18:00:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rename-a-chart-object-using-VBa/m-p/266230#M1193546</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-06-07T18:00:39Z</dc:date>
    </item>
  </channel>
</rss>

