<?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 Macro Error: Export to PPT in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-Error-Export-to-PPT/m-p/417232#M155146</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;I am not a Macro person but I have this simple macro to export a chart to PPT. However, when I call the macro, the macro editor appears.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; I think it means there is an error in the macro. Any suggestions to fix this issue&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;The command that appear to be in error are:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'objPresentation.SaveAs "Sample PPT.pptx"&lt;/P&gt;&lt;P&gt;'objPresentation.Close&lt;/P&gt;&lt;P&gt;'objPPT.Quit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;Here is the sample macro.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;sub test&lt;BR /&gt;'Create ppt object&lt;BR /&gt;Set objPPT = CreateObject("PowerPoint.Application")&lt;BR /&gt;objPPT.Visible = True&lt;BR /&gt;&lt;BR /&gt;Set objPresentation = objPPT.Presentations.Add&lt;BR /&gt;Set PPSlide = objPresentation.Slides.Add(1,11)&lt;BR /&gt;ActiveDocument.GetSheetObject("CH01").CopyBitmapToClipboard&lt;BR /&gt;PPSlide.Shapes.Paste&lt;BR /&gt;' Close Option 1&lt;BR /&gt;'objPresentation.SaveAs "Sample PPT.pptx"&lt;BR /&gt;'objPresentation.Close&lt;BR /&gt;'objPPT.Quit&lt;BR /&gt;&lt;BR /&gt;' Close Option2&lt;BR /&gt;'PPPres.SaveAs "Frontline PPT.pptx"&lt;BR /&gt;'PPPres.Close&lt;BR /&gt;'PPApp.Quit&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;'Clean up&lt;BR /&gt;Set PPSlide = Nothing&lt;BR /&gt;Set PPPres = Nothing&lt;BR /&gt;Set PPApp = Nothing&lt;BR /&gt;end Sub &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 Jan 2013 07:55:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-01-12T07:55:23Z</dc:date>
    <item>
      <title>Macro Error: Export to PPT</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Error-Export-to-PPT/m-p/417232#M155146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;I am not a Macro person but I have this simple macro to export a chart to PPT. However, when I call the macro, the macro editor appears.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; I think it means there is an error in the macro. Any suggestions to fix this issue&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;The command that appear to be in error are:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'objPresentation.SaveAs "Sample PPT.pptx"&lt;/P&gt;&lt;P&gt;'objPresentation.Close&lt;/P&gt;&lt;P&gt;'objPPT.Quit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;Here is the sample macro.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;sub test&lt;BR /&gt;'Create ppt object&lt;BR /&gt;Set objPPT = CreateObject("PowerPoint.Application")&lt;BR /&gt;objPPT.Visible = True&lt;BR /&gt;&lt;BR /&gt;Set objPresentation = objPPT.Presentations.Add&lt;BR /&gt;Set PPSlide = objPresentation.Slides.Add(1,11)&lt;BR /&gt;ActiveDocument.GetSheetObject("CH01").CopyBitmapToClipboard&lt;BR /&gt;PPSlide.Shapes.Paste&lt;BR /&gt;' Close Option 1&lt;BR /&gt;'objPresentation.SaveAs "Sample PPT.pptx"&lt;BR /&gt;'objPresentation.Close&lt;BR /&gt;'objPPT.Quit&lt;BR /&gt;&lt;BR /&gt;' Close Option2&lt;BR /&gt;'PPPres.SaveAs "Frontline PPT.pptx"&lt;BR /&gt;'PPPres.Close&lt;BR /&gt;'PPApp.Quit&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;'Clean up&lt;BR /&gt;Set PPSlide = Nothing&lt;BR /&gt;Set PPPres = Nothing&lt;BR /&gt;Set PPApp = Nothing&lt;BR /&gt;end Sub &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jan 2013 07:55:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Error-Export-to-PPT/m-p/417232#M155146</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-12T07:55:23Z</dc:date>
    </item>
  </channel>
</rss>

