<?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 Exporting an object to PPT only when it is enable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exporting-an-object-to-PPT-only-when-it-is-enable/m-p/694851#M251218</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 have a chart and a text object in a sheet which needs to be exported to PPT (Please see the attachment).&lt;/P&gt;&lt;P&gt;The textbox is enabled when a particular filter is selected in the chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: I have a bar chart with 3 bars A, B and C .&lt;/P&gt;&lt;P&gt;Text box is enables only when the user clicks on bar A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to export this chart and the text box (whenever it is enabled) on the sheet to PPT. i.e.&lt;/P&gt;&lt;P&gt;-if the user selects bar A and then export the objects the the PPT should contain bar chart and the text box.&lt;/P&gt;&lt;P&gt;-If nothing is select in the bar chart only the bar chart needs to be exported to PPT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to export the chart and the text box when it is enabled using the following Macro&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sub ExportPPT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.ActiveSheet.FitZoomToWindow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sub ExportPPT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.ActiveSheet.FitZoomToWindow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set objPPT = CreateObject("PowerPoint.Application")&lt;BR /&gt;objPPT.Visible = True&lt;BR /&gt;Set objPresentation = objPPT.Presentations.Add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Set PPSlide = objPresentation.Slides.Add(1,11)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ActiveDocument.GetSheetObject("CH01").CopyBitmapToClipboard &lt;BR /&gt;with PPSlide.Shapes.Paste&lt;BR /&gt;.left = 90&lt;BR /&gt;.Top = 146&lt;BR /&gt;.Width=250&lt;BR /&gt;.height=250&lt;BR /&gt;end with&lt;BR /&gt;ActiveDocument.GetSheetObject("TX01").CopyBitmapToClipboard &lt;BR /&gt;with PPSlide.Shapes.Paste&lt;BR /&gt;.left = 90&lt;BR /&gt;.Top = 146&lt;BR /&gt;.Width=250&lt;BR /&gt;.height=250&lt;BR /&gt;end with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Set PPSlide = Nothing&lt;BR /&gt;Set PPPres = Nothing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when the text box is not enabled it is exporting the same object copied earlier in the clipboard.&lt;/P&gt;&lt;P&gt;How will I test which text box is enabled when in my Macro??&lt;/P&gt;&lt;P&gt;In my report I have many such text boxes to be exported to PPT whenever they are enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I am clear on my part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance!.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laxmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Sep 2014 12:18:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-09-25T12:18:32Z</dc:date>
    <item>
      <title>Exporting an object to PPT only when it is enable</title>
      <link>https://community.qlik.com/t5/QlikView/Exporting-an-object-to-PPT-only-when-it-is-enable/m-p/694851#M251218</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 have a chart and a text object in a sheet which needs to be exported to PPT (Please see the attachment).&lt;/P&gt;&lt;P&gt;The textbox is enabled when a particular filter is selected in the chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: I have a bar chart with 3 bars A, B and C .&lt;/P&gt;&lt;P&gt;Text box is enables only when the user clicks on bar A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to export this chart and the text box (whenever it is enabled) on the sheet to PPT. i.e.&lt;/P&gt;&lt;P&gt;-if the user selects bar A and then export the objects the the PPT should contain bar chart and the text box.&lt;/P&gt;&lt;P&gt;-If nothing is select in the bar chart only the bar chart needs to be exported to PPT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to export the chart and the text box when it is enabled using the following Macro&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sub ExportPPT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.ActiveSheet.FitZoomToWindow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sub ExportPPT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.ActiveSheet.FitZoomToWindow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set objPPT = CreateObject("PowerPoint.Application")&lt;BR /&gt;objPPT.Visible = True&lt;BR /&gt;Set objPresentation = objPPT.Presentations.Add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Set PPSlide = objPresentation.Slides.Add(1,11)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ActiveDocument.GetSheetObject("CH01").CopyBitmapToClipboard &lt;BR /&gt;with PPSlide.Shapes.Paste&lt;BR /&gt;.left = 90&lt;BR /&gt;.Top = 146&lt;BR /&gt;.Width=250&lt;BR /&gt;.height=250&lt;BR /&gt;end with&lt;BR /&gt;ActiveDocument.GetSheetObject("TX01").CopyBitmapToClipboard &lt;BR /&gt;with PPSlide.Shapes.Paste&lt;BR /&gt;.left = 90&lt;BR /&gt;.Top = 146&lt;BR /&gt;.Width=250&lt;BR /&gt;.height=250&lt;BR /&gt;end with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Set PPSlide = Nothing&lt;BR /&gt;Set PPPres = Nothing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when the text box is not enabled it is exporting the same object copied earlier in the clipboard.&lt;/P&gt;&lt;P&gt;How will I test which text box is enabled when in my Macro??&lt;/P&gt;&lt;P&gt;In my report I have many such text boxes to be exported to PPT whenever they are enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I am clear on my part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance!.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laxmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 12:18:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exporting-an-object-to-PPT-only-when-it-is-enable/m-p/694851#M251218</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-25T12:18:32Z</dc:date>
    </item>
  </channel>
</rss>

