<?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 write macro to copy QV objects in a powerpoint slide in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/write-macro-to-copy-QV-objects-in-a-powerpoint-slide/m-p/815291#M1023256</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 am trying to copy Qlikview objects in a powerpoint slide as an 'Object', and not as an 'image' and am facing two problems here:&lt;/P&gt;&lt;P&gt;1) The below code is successfully coying objects from one sheet(SH05), but once the other sheet (SH04) is activated, its not coying the object from this one. The clipboard have object from the earlier sheet only(SH05)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) I need to copy the Qlikview object in a powepoint slide as an 'Object' and not as an 'image'.&lt;/P&gt;&lt;P&gt;ActiveDocument.GetSheetObject("CH25").CopyBitmapToClipboard will always copy as an image, Is there a method to copy the object as an 'Object'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what i have written:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub ExportPPT&lt;BR /&gt; Set objPPT = CreateObject("PowerPoint.Application")&lt;BR /&gt;objPPT.Visible = True&lt;BR /&gt;Set objPresentation = objPPT.Presentations.Add&lt;BR /&gt; Set PPSlide = objPresentation.Slides.Add(1,11)&lt;BR /&gt; &lt;BR /&gt;set up = ActiveDocument.GetApplication.GetUserPreferences &lt;BR /&gt; up.ChartUseCapNBorder = True&lt;BR /&gt; ActiveDocument.GetApplication.SetUserPreferences up&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;with objPresentation.Slides(1).Shapes(1)&lt;BR /&gt;.TextFrame.TextRange = "Supervisory Controls"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;'.Left = 100&lt;BR /&gt;'.top = 100&lt;BR /&gt;'.width=75&lt;BR /&gt;'.height=25&lt;BR /&gt;end with &lt;BR /&gt; ActiveDocument.Sheets("SH05").Activate &lt;BR /&gt; ActiveDocument.GetSheetObject("CH23").CopyBitmapToClipboard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with objPresentation.Slides(1).Shapes.PasteSpecial(PasteHTML)&lt;BR /&gt;.Left = 100&lt;BR /&gt;.top = 125&lt;BR /&gt;.width=400&lt;BR /&gt;.height=150&lt;BR /&gt;end with &lt;BR /&gt; ActiveDocument.GetSheetObject("CH25").CopyBitmapToClipboard&lt;BR /&gt; with objPresentation.Slides(1).Shapes.Paste&lt;BR /&gt;.Left = 100&lt;BR /&gt;.top = 300&lt;BR /&gt;.width=100&lt;BR /&gt;.height=125&lt;BR /&gt;end with &lt;BR /&gt; ActiveDocument.GetSheetObject("CH26").CopyBitmapToClipboard&lt;BR /&gt; with objPresentation.Slides(1).Shapes.Paste&lt;BR /&gt;.Left = 400&lt;BR /&gt;.top = 300&lt;BR /&gt;.width=100&lt;BR /&gt;.height=125&lt;BR /&gt;end with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set PPSlide = objPresentation.Slides.Add(2,11)&lt;BR /&gt; with objPresentation.Slides(2).Shapes(1)&lt;BR /&gt;.TextFrame.TextRange = "Resource Forecasting" &lt;BR /&gt;end with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; ActiveDocument.ActivateSheetByID "SH04"&lt;BR /&gt; 'ActiveDocument.Sheets("SH04").Activate &lt;BR /&gt; ActiveDocument.GetSheetObject("CH22").CopyBitmapToClipboard&lt;BR /&gt; objPresentation.Slides(2).select&lt;BR /&gt; with objPresentation.Slides(2).Shapes.Paste&lt;BR /&gt;.Left = 100&lt;BR /&gt;.top = 125&lt;BR /&gt;.width=400&lt;BR /&gt;.height=150&lt;BR /&gt;end with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.GetSheetObject("CH28").CopyBitmapToClipboard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with objPresentation.Slides(2).Shapes.Paste&lt;BR /&gt;.Left = 100&lt;BR /&gt;.top = 300&lt;BR /&gt;.width=100&lt;BR /&gt;.height=125&lt;BR /&gt;end with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set PPSlide = Nothing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set PPPres = Nothing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Mar 2015 06:56:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-17T06:56:32Z</dc:date>
    <item>
      <title>write macro to copy QV objects in a powerpoint slide</title>
      <link>https://community.qlik.com/t5/QlikView/write-macro-to-copy-QV-objects-in-a-powerpoint-slide/m-p/815291#M1023256</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 am trying to copy Qlikview objects in a powerpoint slide as an 'Object', and not as an 'image' and am facing two problems here:&lt;/P&gt;&lt;P&gt;1) The below code is successfully coying objects from one sheet(SH05), but once the other sheet (SH04) is activated, its not coying the object from this one. The clipboard have object from the earlier sheet only(SH05)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) I need to copy the Qlikview object in a powepoint slide as an 'Object' and not as an 'image'.&lt;/P&gt;&lt;P&gt;ActiveDocument.GetSheetObject("CH25").CopyBitmapToClipboard will always copy as an image, Is there a method to copy the object as an 'Object'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what i have written:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub ExportPPT&lt;BR /&gt; Set objPPT = CreateObject("PowerPoint.Application")&lt;BR /&gt;objPPT.Visible = True&lt;BR /&gt;Set objPresentation = objPPT.Presentations.Add&lt;BR /&gt; Set PPSlide = objPresentation.Slides.Add(1,11)&lt;BR /&gt; &lt;BR /&gt;set up = ActiveDocument.GetApplication.GetUserPreferences &lt;BR /&gt; up.ChartUseCapNBorder = True&lt;BR /&gt; ActiveDocument.GetApplication.SetUserPreferences up&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;with objPresentation.Slides(1).Shapes(1)&lt;BR /&gt;.TextFrame.TextRange = "Supervisory Controls"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;'.Left = 100&lt;BR /&gt;'.top = 100&lt;BR /&gt;'.width=75&lt;BR /&gt;'.height=25&lt;BR /&gt;end with &lt;BR /&gt; ActiveDocument.Sheets("SH05").Activate &lt;BR /&gt; ActiveDocument.GetSheetObject("CH23").CopyBitmapToClipboard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with objPresentation.Slides(1).Shapes.PasteSpecial(PasteHTML)&lt;BR /&gt;.Left = 100&lt;BR /&gt;.top = 125&lt;BR /&gt;.width=400&lt;BR /&gt;.height=150&lt;BR /&gt;end with &lt;BR /&gt; ActiveDocument.GetSheetObject("CH25").CopyBitmapToClipboard&lt;BR /&gt; with objPresentation.Slides(1).Shapes.Paste&lt;BR /&gt;.Left = 100&lt;BR /&gt;.top = 300&lt;BR /&gt;.width=100&lt;BR /&gt;.height=125&lt;BR /&gt;end with &lt;BR /&gt; ActiveDocument.GetSheetObject("CH26").CopyBitmapToClipboard&lt;BR /&gt; with objPresentation.Slides(1).Shapes.Paste&lt;BR /&gt;.Left = 400&lt;BR /&gt;.top = 300&lt;BR /&gt;.width=100&lt;BR /&gt;.height=125&lt;BR /&gt;end with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set PPSlide = objPresentation.Slides.Add(2,11)&lt;BR /&gt; with objPresentation.Slides(2).Shapes(1)&lt;BR /&gt;.TextFrame.TextRange = "Resource Forecasting" &lt;BR /&gt;end with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; ActiveDocument.ActivateSheetByID "SH04"&lt;BR /&gt; 'ActiveDocument.Sheets("SH04").Activate &lt;BR /&gt; ActiveDocument.GetSheetObject("CH22").CopyBitmapToClipboard&lt;BR /&gt; objPresentation.Slides(2).select&lt;BR /&gt; with objPresentation.Slides(2).Shapes.Paste&lt;BR /&gt;.Left = 100&lt;BR /&gt;.top = 125&lt;BR /&gt;.width=400&lt;BR /&gt;.height=150&lt;BR /&gt;end with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.GetSheetObject("CH28").CopyBitmapToClipboard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with objPresentation.Slides(2).Shapes.Paste&lt;BR /&gt;.Left = 100&lt;BR /&gt;.top = 300&lt;BR /&gt;.width=100&lt;BR /&gt;.height=125&lt;BR /&gt;end with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set PPSlide = Nothing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set PPPres = Nothing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 06:56:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/write-macro-to-copy-QV-objects-in-a-powerpoint-slide/m-p/815291#M1023256</guid>
      <dc:creator />
      <dc:date>2015-03-17T06:56:32Z</dc:date>
    </item>
  </channel>
</rss>

