<?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 macro to list all charts on sheet in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/macro-to-list-all-charts-on-sheet/m-p/244698#M1206180</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order to get all objects, I think you would need to loop through all sheets and for each sheet use something similar to the routine above. GetSheetObjects is a method of a sheet, so you can't use ActiveDocument.GetSheetObjects.&lt;/P&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sub GetCharts&lt;BR /&gt; For j = 0 to numberOfSheets //I'm not sure how to determine this&lt;BR /&gt; Objects = ActiveDocument.GetSheet(j).GetSheetObjects&lt;BR /&gt; For i = lBound(Objects) To uBound(Objects)&lt;BR /&gt; If obj.GetObjectType = 11 'Charts Then&lt;BR /&gt; msgbox("Chart: " &amp;amp; obj.GetObjectId)&lt;BR /&gt; End If&lt;BR /&gt; next&lt;BR /&gt; Next&lt;BR /&gt;End Sub&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Here, you would loop through all sheets. I didn't find a property which defined how many sheets there were in the document, but there is probably a way to figure it out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Jan 2011 22:29:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-17T22:29:32Z</dc:date>
    <item>
      <title>macro to list all charts on sheet</title>
      <link>https://community.qlik.com/t5/QlikView/macro-to-list-all-charts-on-sheet/m-p/244694#M1206176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;I'm trying to dynamically build buttons to access charts on another sheet. I am having trouble writing a macro to get a list of all of the charts on a particular sheet. I can get all of the objects, but how would I get a list of the charts and be able to access properties such as chart name, id and conditional expression for the visible property.&lt;/P&gt;&lt;P&gt;thanks so much,&lt;BR /&gt;Shanikia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2010 16:30:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/macro-to-list-all-charts-on-sheet/m-p/244694#M1206176</guid>
      <dc:creator />
      <dc:date>2010-02-24T16:30:59Z</dc:date>
    </item>
    <item>
      <title>macro to list all charts on sheet</title>
      <link>https://community.qlik.com/t5/QlikView/macro-to-list-all-charts-on-sheet/m-p/244695#M1206177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can get the info you want by utilizing GetSheetObjects and GetObjectType (see the API Guide for more detail).&lt;/P&gt;&lt;P&gt;Here is an example that will display each chart Id in a message box:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sub GetCharts&lt;BR /&gt; Objects = ActiveDocument.ActiveSheet.GetSheetObjects&lt;BR /&gt; For i = lBound(Objects) To uBound(Objects)&lt;BR /&gt; If obj.GetObjectType = 11 'Charts Then&lt;BR /&gt; msgbox("Chart: " &amp;amp; obj.GetObjectId)&lt;BR /&gt; End If&lt;BR /&gt; next&lt;BR /&gt;End Sub&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Once you have the object Id of the chart, you will use GetProperties. Then you can manipulate the properties and use SetProperties.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2010 16:43:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/macro-to-list-all-charts-on-sheet/m-p/244695#M1206177</guid>
      <dc:creator />
      <dc:date>2010-02-24T16:43:19Z</dc:date>
    </item>
    <item>
      <title>macro to list all charts on sheet</title>
      <link>https://community.qlik.com/t5/QlikView/macro-to-list-all-charts-on-sheet/m-p/244696#M1206178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks NMiller...&lt;/P&gt;&lt;P&gt;I thought I had the same syntax, but yours works and mine didn't so...just had to add an assignment:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;For&lt;/B&gt; i = &lt;B&gt;lBound&lt;/B&gt;(Objects) To &lt;B&gt;uBound&lt;/B&gt;(Objects)&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;&lt;STRONG&gt;set&lt;/STRONG&gt; &lt;STRONG&gt;obj = Objects(i)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="PADDING-LEFT:30px;"&gt;&lt;STRONG&gt;If&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="PADDING-LEFT:30px;"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="PADDING-LEFT:30px;"&gt;obj.GetObjectType &amp;gt;= 10 &lt;B&gt;Then&lt;/B&gt; &lt;B&gt;' All Chart types&lt;/B&gt;("Chart: " &amp;amp; obj.GetCaption.Name.v &amp;amp; " ID: "&amp;amp;obj.GetObjectId)&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold; padding-left: 60px"&gt;msgbox&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold; padding-left: 60px"&gt;&lt;/P&gt;&lt;P style="padding-left:60px;"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold; padding-left: 30px"&gt;End&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold; padding-left: 30px"&gt;&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;&lt;/P&gt;&lt;B&gt;If&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2010 17:33:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/macro-to-list-all-charts-on-sheet/m-p/244696#M1206178</guid>
      <dc:creator />
      <dc:date>2010-02-24T17:33:10Z</dc:date>
    </item>
    <item>
      <title>macro to list all charts on sheet</title>
      <link>https://community.qlik.com/t5/QlikView/macro-to-list-all-charts-on-sheet/m-p/244697#M1206179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey NMiller, thanks for your contribution.&lt;/P&gt;&lt;P&gt;I'm just wondering what if I would like to get all the objects of the document. Not only for the activated sheet.&lt;/P&gt;&lt;P&gt;How can I do that?&lt;/P&gt;&lt;P&gt;Many thanks in advance!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jan 2011 18:01:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/macro-to-list-all-charts-on-sheet/m-p/244697#M1206179</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2011-01-17T18:01:03Z</dc:date>
    </item>
    <item>
      <title>macro to list all charts on sheet</title>
      <link>https://community.qlik.com/t5/QlikView/macro-to-list-all-charts-on-sheet/m-p/244698#M1206180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order to get all objects, I think you would need to loop through all sheets and for each sheet use something similar to the routine above. GetSheetObjects is a method of a sheet, so you can't use ActiveDocument.GetSheetObjects.&lt;/P&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sub GetCharts&lt;BR /&gt; For j = 0 to numberOfSheets //I'm not sure how to determine this&lt;BR /&gt; Objects = ActiveDocument.GetSheet(j).GetSheetObjects&lt;BR /&gt; For i = lBound(Objects) To uBound(Objects)&lt;BR /&gt; If obj.GetObjectType = 11 'Charts Then&lt;BR /&gt; msgbox("Chart: " &amp;amp; obj.GetObjectId)&lt;BR /&gt; End If&lt;BR /&gt; next&lt;BR /&gt; Next&lt;BR /&gt;End Sub&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Here, you would loop through all sheets. I didn't find a property which defined how many sheets there were in the document, but there is probably a way to figure it out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jan 2011 22:29:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/macro-to-list-all-charts-on-sheet/m-p/244698#M1206180</guid>
      <dc:creator />
      <dc:date>2011-01-17T22:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: macro to list all charts on sheet</title>
      <link>https://community.qlik.com/t5/QlikView/macro-to-list-all-charts-on-sheet/m-p/244699#M1206181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;set Objects = ActiveDocument.getSheet(0).GetSheetObjects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.ActiveSheet.GetSheetObjects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both is not working.. I am getting an error - "Object Required"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;KRS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 09:06:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/macro-to-list-all-charts-on-sheet/m-p/244699#M1206181</guid>
      <dc:creator>krishnaroopa</dc:creator>
      <dc:date>2012-06-18T09:06:08Z</dc:date>
    </item>
  </channel>
</rss>

