<?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 Re: Unable to export objects from various sheets to a powerpoint application in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Unable-to-export-objects-from-various-sheets-to-a-powerpoint/m-p/1067402#M924956</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds that there are activate-statements like: objPresentation.Sheets("SH12").Activate missing if it's not worked by multiplen sheets. Quite often you need to activate each sheet each time if you want to access objects on them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Apr 2016 15:03:48 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2016-04-06T15:03:48Z</dc:date>
    <item>
      <title>Unable to export objects from various sheets to a powerpoint application</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-export-objects-from-various-sheets-to-a-powerpoint/m-p/1067400#M924954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been working on this macro which exports objects from 10 different sheets to specified positions in a powerpoint application.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My macro works well when all charts are in the same sheet. When I copy objects from different sheets the export ends in an error. It is highly unlikely that the macro is wrong however as I am not an expert I require your help in solving this issue. I have tried the activate sheet by variable method ( which works perfectly when I export items to Excel but fails when exporting to powerpoint presentation).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Macro is given below. If it relates to some specific user settings please let me know. I am desperate to get it working asap as my deadline is near.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub ppt&lt;BR /&gt; &lt;BR /&gt; pos = activedocument.evaluate("=getactivesheetid()")&lt;BR /&gt; set v = activedocument.Getvariable("vShowSheet")&lt;BR /&gt; v.SetContent 1,TRUE&lt;BR /&gt; &lt;BR /&gt; Set objPPT = CreateObject("PowerPoint.Application")&amp;nbsp; &lt;BR /&gt; objPPT.Visible = True&amp;nbsp; &lt;BR /&gt; 'Set objPresentation = objPPT.Presentations.open("C:\users\mahaveers\Desktop\strategic development\KAM Template.pptx")&lt;BR /&gt; &lt;BR /&gt; 'objPresentation.Sheets("SH12").Activate&lt;BR /&gt; Set PPSlide = objPresentation.Slides(3)&lt;BR /&gt; ActiveDocument.GetSheetObject("CH52").CopyBitmapToClipboard&lt;BR /&gt; PPSlide.Shapes.PasteSpecial(PasteHTML)&lt;BR /&gt; PPSlide.Shapes(PPSlide.Shapes.Count).Top = 75 'This sets the top location of the image&amp;nbsp; &lt;BR /&gt; PPSlide.Shapes(PPSlide.Shapes.Count).Left =50 'This sets the left location&amp;nbsp; &lt;BR /&gt; PPSlide.Shapes(PPSlide.Shapes.Count).Width = 100&amp;nbsp; &lt;BR /&gt; PPSlide.Shapes(PPSlide.Shapes.Count).Height = 150&lt;BR /&gt; &lt;BR /&gt; Set PPSlide = objPresentation.Slides(4)&lt;BR /&gt; ActiveDocument.GetSheetObject("CH53").CopyBitmapToClipboard&lt;BR /&gt; PPSlide.Shapes.PasteSpecial(PasteHTML)&lt;BR /&gt; PPSlide.Shapes(PPSlide.Shapes.Count).Top = 225 'This sets the top location of the image&amp;nbsp; &lt;BR /&gt; PPSlide.Shapes(PPSlide.Shapes.Count).Left = 50 'This sets the left location&amp;nbsp; &lt;BR /&gt; PPSlide.Shapes(PPSlide.Shapes.Count).Width = 100&amp;nbsp; &lt;BR /&gt; PPSlide.Shapes(PPSlide.Shapes.Count).Height = 150&lt;BR /&gt; &lt;BR /&gt; Set PPSlide = objPresentation.Slides(5)&lt;BR /&gt; ActiveDocument.GetSheetObject("CH63").CopyBitmapToClipboard&lt;BR /&gt; PPSlide.Shapes.PasteSpecial(PasteHTML)&lt;BR /&gt; PPSlide.Shapes(PPSlide.Shapes.Count).Top = 75 'This sets the top location of the image&amp;nbsp; &lt;BR /&gt; PPSlide.Shapes(PPSlide.Shapes.Count).Left =50 'This sets the left location&amp;nbsp; &lt;BR /&gt; PPSlide.Shapes(PPSlide.Shapes.Count).Width = 100&amp;nbsp; &lt;BR /&gt; PPSlide.Shapes(PPSlide.Shapes.Count).Height = 150&lt;BR /&gt; &lt;BR /&gt; Set PPSlide = objPresentation.Slides(6)&lt;BR /&gt; ActiveDocument.GetSheetObject("CH64").CopyBitmapToClipboard&lt;BR /&gt; PPSlide.Shapes.PasteSpecial(PasteHTML)&lt;BR /&gt; PPSlide.Shapes(PPSlide.Shapes.Count).Top = 225 'This sets the top location of the image&amp;nbsp; &lt;BR /&gt; PPSlide.Shapes(PPSlide.Shapes.Count).Left = 50 'This sets the left location&amp;nbsp; &lt;BR /&gt; PPSlide.Shapes(PPSlide.Shapes.Count).Width = 100&amp;nbsp; &lt;BR /&gt; PPSlide.Shapes(PPSlide.Shapes.Count).Height = 150 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set PPSlide = Nothing&lt;BR /&gt; Set PPPres = Nothing&lt;BR /&gt; Set PPApp = Nothing&lt;BR /&gt; &lt;BR /&gt; set v = activedocument.Getvariable("vShowAll")&lt;BR /&gt; v.SetContent 0,TRUE&lt;BR /&gt; activedocument.sheets(pos).activate&lt;BR /&gt; &lt;BR /&gt; msgbox "PPT Extract Successful",64,"Complete"&lt;BR /&gt; &lt;BR /&gt; End sub &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All help much appreciated!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-export-objects-from-various-sheets-to-a-powerpoint/m-p/1067400#M924954</guid>
      <dc:creator>snehamahaveer</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to export objects from various sheets to a powerpoint application</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-export-objects-from-various-sheets-to-a-powerpoint/m-p/1067401#M924955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to make the sheet as active before &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CopyBitmapToClipboard&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 15:02:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-export-objects-from-various-sheets-to-a-powerpoint/m-p/1067401#M924955</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-04-06T15:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to export objects from various sheets to a powerpoint application</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-export-objects-from-various-sheets-to-a-powerpoint/m-p/1067402#M924956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds that there are activate-statements like: objPresentation.Sheets("SH12").Activate missing if it's not worked by multiplen sheets. Quite often you need to activate each sheet each time if you want to access objects on them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 15:03:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-export-objects-from-various-sheets-to-a-powerpoint/m-p/1067402#M924956</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-04-06T15:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to export objects from various sheets to a powerpoint application</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-export-objects-from-various-sheets-to-a-powerpoint/m-p/1067403#M924957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did use activate sheet syntax, but it still did not work.&lt;/P&gt;&lt;P&gt;objPresentation.Sheets("SH12").Activate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using vShowSheet to activate all sheets did not work as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 15:51:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-export-objects-from-various-sheets-to-a-powerpoint/m-p/1067403#M924957</guid>
      <dc:creator>snehamahaveer</dc:creator>
      <dc:date>2016-04-06T15:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to export objects from various sheets to a powerpoint application</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-export-objects-from-various-sheets-to-a-powerpoint/m-p/1067404#M924958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clever,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did use activate sheet syntax, but it still did not work.&lt;/P&gt;&lt;P&gt;objPresentation.Sheets("SH12").Activate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using vShowSheet to activate all sheets did not work as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong.?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 15:52:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-export-objects-from-various-sheets-to-a-powerpoint/m-p/1067404#M924958</guid>
      <dc:creator>snehamahaveer</dc:creator>
      <dc:date>2016-04-06T15:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to export objects from various sheets to a powerpoint application</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-export-objects-from-various-sheets-to-a-powerpoint/m-p/1067405#M924959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sneha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the following Macro will export all graphs (objects that start with CH) in your application to powerpoint:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="body undoreset" style="padding-top: 12px; color: #000000; font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;/P&gt;&lt;DIV class="email-wrapped"&gt;&lt;DIV style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sub ExportPPT&amp;nbsp; &lt;BR /&gt;Set PPApp = CreateObject("Powerpoint.Application")&lt;BR /&gt;&lt;BR /&gt;MsgBox("Export to Powerpoint is starting")&lt;BR /&gt;&lt;BR /&gt;PPApp.Visible = True ' Create a presentation &lt;BR /&gt;&lt;BR /&gt;Set PPPres = PPApp.Presentations.Add&lt;BR /&gt;&lt;BR /&gt;for j = 0 to ActiveDocument.NoOfSheets - 1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ActiveDocument.Sheets(j).Activate&lt;BR /&gt;&lt;BR /&gt;set ss= ActiveDocument.GetSheet(j)&lt;BR /&gt;&lt;BR /&gt;shID =ucase(mid(ss.GetProperties.SheetID,10))&lt;BR /&gt;&lt;BR /&gt;shName=ss.GetProperties.Name&lt;BR /&gt;&lt;BR /&gt;ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt;&lt;BR /&gt;ActiveDocument.Sheets(j).Activate&lt;BR /&gt;&lt;BR /&gt;set s=ActiveDocument.ActiveSheet&lt;BR /&gt;&lt;BR /&gt;charts=s.GetSheetObjects&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SlideCount = PPPres.Slides.Count&lt;BR /&gt;Set PPSlide = PPPres.Slides.Add(SlideCount + 1, 11)&lt;BR /&gt;'Set PPSlide = PPPres.Slides.Add(ppres.slides.Count,11)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;for i=lbound(charts) to ubound(charts)&lt;BR /&gt;&lt;BR /&gt;if(UCASE(mid(charts(i).getobjectid,10,2)))="CH" then&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ActiveDocument.GetSheetObject(charts(i).getobjectid).CopyBitmapToClipboard&lt;BR /&gt;&lt;BR /&gt;PPSlide.Shapes.Paste&lt;BR /&gt;&lt;BR /&gt;PPSlide.Shapes(PPSlide.Shapes.Count).Top = 117 'This sets the top location of the image&amp;nbsp; &lt;BR /&gt;PPSlide.Shapes(PPSlide.Shapes.Count).Left = 91 'This sets the left location&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;end if&lt;BR /&gt;&lt;BR /&gt;next &lt;BR /&gt;&lt;BR /&gt;next ''for sheets next move&lt;BR /&gt;&lt;BR /&gt;Set PPSlide = Nothing&lt;BR /&gt;Set PPPres = Nothing&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;MSGBOX "You report was successfully exported to PowerPoint.",64,"KRALLMANN AG"&lt;BR /&gt;end sub&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;You can also modify the above statements to include only certain graphs (then you would just change the if statement to &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11px;"&gt;if(UCASE(mid(charts(i).getobjectid,10,4)))="CHxx" then&amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;Please let me know if you need further instructions.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Best regards,&lt;/DIV&gt;&lt;DIV&gt;Maximilian&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 08:53:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-export-objects-from-various-sheets-to-a-powerpoint/m-p/1067405#M924959</guid>
      <dc:creator />
      <dc:date>2016-04-12T08:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to export objects from various sheets to a powerpoint application</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-export-objects-from-various-sheets-to-a-powerpoint/m-p/1067406#M924960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maximilian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this. Interestingly your script seems to copy/paste all charts to a powerpoint presentation. &lt;/P&gt;&lt;P&gt;However, I now must customise it. I hope you will be able to help as I am a novice with scripting. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want it to incorporate the following. &lt;/P&gt;&lt;P&gt;1. Open a template and populate with charts&lt;/P&gt;&lt;P&gt;2. Charts are to be placed in specific slides at specified position&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have difficulty activating sheets(other than the current tab where the export button lies) and copying charts from qlikview over to Powerpoint. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a test version of my script/qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 15:00:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-export-objects-from-various-sheets-to-a-powerpoint/m-p/1067406#M924960</guid>
      <dc:creator>snehamahaveer</dc:creator>
      <dc:date>2016-04-18T15:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to export objects from various sheets to a powerpoint application</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-export-objects-from-various-sheets-to-a-powerpoint/m-p/1067407#M924961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sneha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please excuse my delayed response.&lt;/P&gt;&lt;P&gt;Which objects would you like to have on which slide?&lt;/P&gt;&lt;P&gt;Please take a look at the modified version of your test file below - I added 2 charts of each sheet to a different powerpoint slide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need any further assistance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2016 13:01:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-export-objects-from-various-sheets-to-a-powerpoint/m-p/1067407#M924961</guid>
      <dc:creator />
      <dc:date>2016-04-22T13:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to export objects from various sheets to a powerpoint application</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-export-objects-from-various-sheets-to-a-powerpoint/m-p/1067408#M924962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Maxmilian.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please guide me in modifying this script to suit my export requirements?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. It should open a template file &lt;/P&gt;&lt;P&gt;2. Extract images of charts from various sheets&lt;/P&gt;&lt;P&gt;3. Paste pictures on specific slides in the template&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you could help me with the logic for a couple of slides, I shall write the script for all images.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance,&lt;/P&gt;&lt;P&gt;Sneha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 07:47:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-export-objects-from-various-sheets-to-a-powerpoint/m-p/1067408#M924962</guid>
      <dc:creator>snehamahaveer</dc:creator>
      <dc:date>2016-04-28T07:47:10Z</dc:date>
    </item>
  </channel>
</rss>

