<?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 Creating PowerPoint Files from QV, Sort Order of Objects in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-PowerPoint-Files-from-QV-Sort-Order-of-Objects/m-p/237419#M88476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fredrik,&lt;/P&gt;&lt;P&gt;took a while to have time to test out, but it works with a few changes, thank you. It is a simple bubble sort, in terms performance probably not the best, for 12 charts it does the job... &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The final script piece for the sorting looks like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt; for i = UBound(charts) - 1 To 0 Step -1&lt;BR /&gt; for j= 0 to i&lt;BR /&gt; if charts(j).getobjectid&amp;gt;charts(j+1).getobjectid then&lt;BR /&gt; set temp=charts(j+1)&lt;BR /&gt; set charts(j+1)=charts(j)&lt;BR /&gt; set charts(j)=temp&lt;BR /&gt; end if&lt;BR /&gt; next&lt;BR /&gt; next&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Mar 2010 11:59:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-03-06T11:59:29Z</dc:date>
    <item>
      <title>Creating PowerPoint Files from QV, Sort Order of Objects</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-PowerPoint-Files-from-QV-Sort-Order-of-Objects/m-p/237416#M88473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm currently working on creating a powerpoint file containing one chart per slide - I used this code from the forum (&lt;A href="http://community.qlik.com/forums/p/16749/65774.aspx#65774"&gt;http://community.qlik.com/forums/p/16749/65774.aspx#65774&lt;/A&gt;) and it works just fine. The only issue I have is with the order of the charts on the slides. It seems that QlikView exports the charts in the order they were created. I've changed the ObjectIDs of the charts manually to the order I would like the Charts to be in but QV ignores that. &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any ideas how to change the sort order? (Other than re-creating the charts in the order I would like to.)&lt;BR /&gt;A function to sort the array by ObjectID that is returned from GetGraphs would probably solve the issue too.&lt;/P&gt;&lt;P&gt;Thanks! Lukas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub ppt&lt;BR /&gt; Set PPApp = CreateObject("Powerpoint.Application")&lt;BR /&gt; PPApp.Visible = True ' Create a presentation&lt;BR /&gt; Set PPPres = PPApp.Presentations.Add&lt;/P&gt;&lt;P&gt;set s=ActiveDocument.Sheets("Trend Charts")&lt;BR /&gt; charts=s.GetGraphs&lt;BR /&gt; for i=lbound(charts) to ubound(charts)&lt;BR /&gt; Set PPSlide = PPPres.Slides.Add(1, 1)&lt;BR /&gt; PPSlide.Shapes(1).Delete ' removes the title&lt;BR /&gt; PPSlide.Shapes(1).Delete ' removes the text box&lt;BR /&gt; ActiveDocument.GetSheetObject(charts(i).getobjectid).maximize&lt;BR /&gt; ActiveDocument.GetSheetObject(charts(i).getobjectid).CopyBitmapToClipboard&lt;BR /&gt; ActiveDocument.GetSheetObject(charts(i).getobjectid).minimize&lt;BR /&gt; with PPSlide.Shapes.Paste&lt;BR /&gt; .Left = 0&lt;BR /&gt; .Top = 30&lt;BR /&gt; .Width=720&lt;BR /&gt; end with&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;PPPres.SaveAs "&lt;A&gt;C:\Trend_Charts.ppt&lt;/A&gt;"&lt;BR /&gt; PPPres.Close&lt;BR /&gt;'PPApp.Quit&lt;BR /&gt; Set PPSlide = Nothing&lt;BR /&gt; Set PPPres = Nothing&lt;BR /&gt; Set PPApp = Nothing&lt;BR /&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 17:21:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-PowerPoint-Files-from-QV-Sort-Order-of-Objects/m-p/237416#M88473</guid>
      <dc:creator />
      <dc:date>2010-02-11T17:21:20Z</dc:date>
    </item>
    <item>
      <title>Creating PowerPoint Files from QV, Sort Order of Objects</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-PowerPoint-Files-from-QV-Sort-Order-of-Objects/m-p/237417#M88474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I think the following link will solve your issues.&lt;BR /&gt;&lt;A href="http://diablopup.blogspot.com/2007/03/sorting-arrays-in-vbscript.html"&gt;http://diablopup.blogspot.com/2007/03/sorting-arrays-in-vbscript.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;/Fredrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 18:03:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-PowerPoint-Files-from-QV-Sort-Order-of-Objects/m-p/237417#M88474</guid>
      <dc:creator />
      <dc:date>2010-02-11T18:03:03Z</dc:date>
    </item>
    <item>
      <title>Creating PowerPoint Files from QV, Sort Order of Objects</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-PowerPoint-Files-from-QV-Sort-Order-of-Objects/m-p/237418#M88475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Fredrik, I was hoping to get around this. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I haven't found time yet to test it, but will let you know.&lt;/P&gt;&lt;P&gt;Cheers, Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2010 10:30:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-PowerPoint-Files-from-QV-Sort-Order-of-Objects/m-p/237418#M88475</guid>
      <dc:creator />
      <dc:date>2010-02-15T10:30:20Z</dc:date>
    </item>
    <item>
      <title>Creating PowerPoint Files from QV, Sort Order of Objects</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-PowerPoint-Files-from-QV-Sort-Order-of-Objects/m-p/237419#M88476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fredrik,&lt;/P&gt;&lt;P&gt;took a while to have time to test out, but it works with a few changes, thank you. It is a simple bubble sort, in terms performance probably not the best, for 12 charts it does the job... &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The final script piece for the sorting looks like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt; for i = UBound(charts) - 1 To 0 Step -1&lt;BR /&gt; for j= 0 to i&lt;BR /&gt; if charts(j).getobjectid&amp;gt;charts(j+1).getobjectid then&lt;BR /&gt; set temp=charts(j+1)&lt;BR /&gt; set charts(j+1)=charts(j)&lt;BR /&gt; set charts(j)=temp&lt;BR /&gt; end if&lt;BR /&gt; next&lt;BR /&gt; next&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Mar 2010 11:59:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-PowerPoint-Files-from-QV-Sort-Order-of-Objects/m-p/237419#M88476</guid>
      <dc:creator />
      <dc:date>2010-03-06T11:59:29Z</dc:date>
    </item>
    <item>
      <title>Creating PowerPoint Files from QV, Sort Order of Objects</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-PowerPoint-Files-from-QV-Sort-Order-of-Objects/m-p/237420#M88477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This was a very helpful post for me to learn export to power point functionality. Thank you very much each of you for sharing your knowledge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 33 minimized charts on one tab that i want to export to ppt. I am using the code shared above and everything is working awesome other than sorting part. My charts are numbered (object id) from straight 1 to 33 but stil i am getting as if its downloading randomly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my Sub that I am using for this. I would really appreciate every help from you guys. Is there something that I am doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub Export&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set PPApp = CreateObject("Powerpoint.Application")&lt;BR /&gt;PPApp.Visible = True ' Create a presentation &lt;/P&gt;&lt;P&gt;Set PPPres = PPApp.Presentations.Add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set s=ActiveDocument.Sheets("Export to PPT")&lt;BR /&gt;charts=s.GetGraphs&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;for i = UBound(charts) - 1 To 0 Step -1&amp;nbsp; &lt;BR /&gt;for j= 0 to i&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if charts(j).getobjectid&amp;gt;charts(j+1).getobjectid then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set temp=charts(j+1)&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set charts(j+1)=charts(j)&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set charts(j)=temp&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end if&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; next &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; next&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;for i=lbound(charts) to ubound(charts)&lt;BR /&gt;&amp;nbsp; Set PPSlide = PPPres.Slides.Add(1, 1)&lt;BR /&gt;&amp;nbsp; PPSlide.Shapes(1).Delete ' removes the title&lt;BR /&gt;&amp;nbsp; PPSlide.Shapes(1).Delete ' removes the text box&lt;BR /&gt;&amp;nbsp; ActiveDocument.GetSheetObject(charts(i).getobjectid).maximize&lt;BR /&gt;&amp;nbsp; ActiveDocument.GetSheetObject(charts(i).getobjectid).CopyBitmapToClipboard&lt;BR /&gt;&amp;nbsp; ActiveDocument.GetSheetObject(charts(i).getobjectid).minimize&lt;BR /&gt;&amp;nbsp; with PPSlide.Shapes.Paste&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Left = 30&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Top = 70&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Width=660&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;end with&lt;BR /&gt;next&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; PPPres.SaveAs "C:\DC-DC.ppt" &lt;BR /&gt; 'PPPres.Close &lt;BR /&gt; 'PPApp.Quit &lt;BR /&gt; Set PPSlide = Nothing &lt;BR /&gt; Set PPPres = Nothing &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 16:29:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-PowerPoint-Files-from-QV-Sort-Order-of-Objects/m-p/237420#M88477</guid>
      <dc:creator />
      <dc:date>2011-10-20T16:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Creating PowerPoint Files from QV, Sort Order of Objects</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-PowerPoint-Files-from-QV-Sort-Order-of-Objects/m-p/237421#M88478</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 anyone tell me how to export all&amp;nbsp; the Sheet objects in a sheet to excel.thanks in advance for ur help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 07:02:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-PowerPoint-Files-from-QV-Sort-Order-of-Objects/m-p/237421#M88478</guid>
      <dc:creator />
      <dc:date>2011-12-14T07:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Creating PowerPoint Files from QV, Sort Order of Objects</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-PowerPoint-Files-from-QV-Sort-Order-of-Objects/m-p/237422#M88479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My macro is hanging in the below step,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set s=ActiveDocument.Sheets("Trend Charts")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 05:02:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-PowerPoint-Files-from-QV-Sort-Order-of-Objects/m-p/237422#M88479</guid>
      <dc:creator>gainkarthi</dc:creator>
      <dc:date>2013-02-18T05:02:10Z</dc:date>
    </item>
  </channel>
</rss>

