<?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 Delete Table Box from Macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Delete-Table-Box-from-Macro/m-p/157946#M33217</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am looking for a way to delete just one tablebox from a sheet. I know the object id and will delete it by name.&lt;/P&gt;&lt;P&gt;I have tried the above code that is the same as the API Guide and it does not work in 9.0. If I have three objects on the sheet, it will delete two of them. If there is only one tablebox on the sheet it will not be deleted. I cannot get it to delete all the objects, it always leaves one object. Anyway, I really only want to delete one object.&lt;/P&gt;&lt;P&gt;I have run into a couple of times where code from the API guide does not work in 9.0. Does anyone use the "SheetObjects(0).close" function above.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;JS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jun 2010 19:55:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-06-03T19:55:27Z</dc:date>
    <item>
      <title>Delete Table Box from Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-Table-Box-from-Macro/m-p/157944#M33215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How can I delete a table box from macro?&lt;/P&gt;&lt;P&gt;Thank's a lot!!&lt;/P&gt;&lt;P&gt;Pol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 22:39:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-Table-Box-from-Macro/m-p/157944#M33215</guid>
      <dc:creator />
      <dc:date>2009-08-14T22:39:59Z</dc:date>
    </item>
    <item>
      <title>Delete Table Box from Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-Table-Box-from-Macro/m-p/157945#M33216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;rem ** remove &lt;STRONG&gt;all&lt;/STRONG&gt; sheet objects on sheet Main **&lt;BR /&gt;set s=ActiveDocument.Sheets("Main")&lt;BR /&gt;orignumber=s.NoOfSheetObjects&lt;BR /&gt;for i=0 to orignumber-1&lt;BR /&gt; &lt;STRONG&gt;s.SheetObjects(0).Close&lt;/STRONG&gt;&lt;BR /&gt;next&lt;/P&gt;&lt;P&gt;This will give you some ideas. You can aject always check object properties (for a name, id, etc) before you remoe it. Have fun playing with it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2009 09:59:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-Table-Box-from-Macro/m-p/157945#M33216</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2009-08-21T09:59:54Z</dc:date>
    </item>
    <item>
      <title>Delete Table Box from Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-Table-Box-from-Macro/m-p/157946#M33217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am looking for a way to delete just one tablebox from a sheet. I know the object id and will delete it by name.&lt;/P&gt;&lt;P&gt;I have tried the above code that is the same as the API Guide and it does not work in 9.0. If I have three objects on the sheet, it will delete two of them. If there is only one tablebox on the sheet it will not be deleted. I cannot get it to delete all the objects, it always leaves one object. Anyway, I really only want to delete one object.&lt;/P&gt;&lt;P&gt;I have run into a couple of times where code from the API guide does not work in 9.0. Does anyone use the "SheetObjects(0).close" function above.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;JS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 19:55:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-Table-Box-from-Macro/m-p/157946#M33217</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-03T19:55:27Z</dc:date>
    </item>
    <item>
      <title>Delete Table Box from Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-Table-Box-from-Macro/m-p/157947#M33218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Figured out my own issue. The macro from the API does work, but not if you create the objects and specify a ObjectId with a macro. That is a different story. Here is the code I use to delete just one object with a given name:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;set s=ActiveDocument.Sheets("Testing")&lt;BR /&gt;orignumber=s.NoOfSheetObjects&lt;BR /&gt;for i=0 to orignumber-1&lt;BR /&gt; rem ** get unique object ID for given object on sheet **&lt;BR /&gt; set so = s.SheetObjects(i)&lt;BR /&gt; id = so.GetObjectId&lt;BR /&gt; msgbox("ID = " &amp;amp; id)&lt;BR /&gt; IF id = "Document\TempTable" THEN 'TableBox to be deleted&lt;BR /&gt; s.SheetObjects(i).Close&lt;BR /&gt; END IF&lt;BR /&gt;next&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope this helps the next guy.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;JS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 14:35:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-Table-Box-from-Macro/m-p/157947#M33218</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-04T14:35:54Z</dc:date>
    </item>
  </channel>
</rss>

